demux_t* p_demux = p_demux_meta->p_demux;
vlc_meta_t* p_meta;
FileRef f;
- char *psz_path = decode_URI_duplicate( p_demux->psz_path );
p_demux_meta->p_meta = NULL;
- if( !psz_path )
- return VLC_ENOMEM;
- if( strncmp( p_demux->psz_access, "file", strlen("file") ) )
+ if( strcmp( p_demux->psz_access, "file" ) )
return VLC_EGENERIC;
+ char *psz_path = decode_URI_duplicate( p_demux->psz_file );
+ if( !psz_path )
+ return VLC_ENOMEM;
#if defined(WIN32) || defined (UNDER_CE)
wchar_t wpath[MAX_PATH + 1];