]> git.sesse.net Git - vlc/commitdiff
Fix the type guess: this can be a protocol only if you xan find a :// in it.
authorRémi Duraffort <ivoire@videolan.org>
Sat, 16 May 2009 21:15:12 +0000 (23:15 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 17 May 2009 01:20:52 +0000 (03:20 +0200)
(and add ftp and smb to the list)

src/input/item.c

index 7ef11385de6e22d20873f6455a573fb77e6fb9f7..eac924c4fa14a703f826a6db6a744100be1fb0e3 100644 (file)
@@ -788,10 +788,12 @@ static void GuessType( input_item_t *p_item)
         { "dvb", ITEM_TYPE_CARD },
         { "qpsk", ITEM_TYPE_CARD },
         { "sdp", ITEM_TYPE_NET },
+        { "ftp", ITEM_TYPE_NET },
+        { "smb", ITEM_TYPE_NET },
         { NULL, 0 }
     };
 
-    if( !p_item->psz_uri )
+    if( !p_item->psz_uri || !strstr( p_item->psz_uri, "://" ) )
     {
         p_item->i_type = ITEM_TYPE_FILE;
         return;