* 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"
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" );
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 );