]> git.sesse.net Git - vlc/blobdiff - src/input/access.c
Do not use p_input->p->i_rate directly (no functionnality change yet)
[vlc] / src / input / access.c
index 2c032eadc3c7ea3117f782f79b20ce958cd5ca83..24b4fa01b930588787f049dc5cc0ecdb3518ae19 100644 (file)
@@ -21,7 +21,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include <stdlib.h>
 #include <vlc/vlc.h>
 
 #include "input_internal.h"
@@ -55,7 +54,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" );
@@ -95,8 +94,7 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
     else
     {
         p_access->p_module =
-            module_Need( p_access, "access2", p_access->psz_access,
-                         b_quick ? VLC_TRUE : VLC_FALSE );
+            module_Need( p_access, "access2", p_access->psz_access, VLC_TRUE );
     }
 
     if( p_access->p_module == NULL )