]> git.sesse.net Git - vlc/commitdiff
Fix "quick" access creation mode
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Jan 2007 22:25:46 +0000 (22:25 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Jan 2007 22:25:46 +0000 (22:25 +0000)
src/input/access.c

index a2d1dee6196a929b3f5ff76e5411a89d34dd035a..8df8dbe4a37f7fcf0b69edd21884846689e1c20e 100644 (file)
@@ -55,7 +55,7 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
         p_access->psz_path   = strdup( psz_path );
         if( b_quick )
         {
-            if( strstr( psz_path, "file://" ) )
+            if( strncmp( psz_path, "file://", 7 ) == 0 )
                 p_access->psz_access = strdup( "" );
             else
                 p_access->psz_access = strdup( "file" );