]> git.sesse.net Git - vlc/blobdiff - src/input/access.c
Qt4 - Simple Preferences, audio: you expect to deal with % for the volume not abstrac...
[vlc] / src / input / access.c
index 9ce14db09fe2a7764f15550158d7ee0d974c0d3a..b8080b7ce66c62839ecc48dc73d0abc5ed381ae1 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include <stdlib.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 #include "input_internal.h"
@@ -55,7 +58,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" );
@@ -90,17 +93,17 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
     if( p_source )
     {
         p_access->p_module =
-            module_Need( p_access, "access_filter", psz_access, VLC_FALSE );
+            module_Need( p_access, "access_filter", psz_access, VLC_TRUE );
     }
     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 )
     {
+        msg_StackAdd( "could not create access" );
         vlc_object_detach( p_access );
         free( p_access->psz_access );
         free( p_access->psz_path );