[vlc-commits] ml: don't create URL from URI when local

Francois Cartegnie git at videolan.org
Thu Jul 19 23:16:13 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul 19 23:15:35 2012 +0200| [bf5cbbd044e716f41f2dfa5d4bc21fae628fbfb4] | committer: Francois Cartegnie

ml: don't create URL from URI when local

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf5cbbd044e716f41f2dfa5d4bc21fae628fbfb4
---

 modules/media_library/sql_media_library.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/media_library/sql_media_library.c b/modules/media_library/sql_media_library.c
index 9060cc1..5d76181 100644
--- a/modules/media_library/sql_media_library.c
+++ b/modules/media_library/sql_media_library.c
@@ -1309,7 +1309,7 @@ void CopyMediaToInputItem( input_item_t *p_item, ml_media_t *p_media )
     ml_LockMedia( p_media );
     if( p_media->psz_title && *p_media->psz_title )
         input_item_SetTitle( p_item, p_media->psz_title );
-    if( p_media->psz_uri && *p_media->psz_uri )
+    if( p_media->psz_uri && *p_media->psz_uri && !strncmp( p_media->psz_uri, "http", 4 ) )
         input_item_SetURL( p_item, p_media->psz_uri );
     if( p_media->psz_album && *p_media->psz_album )
         input_item_SetAlbum( p_item, p_media->psz_album );



More information about the vlc-commits mailing list