Commit 57be55cd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove the ugly insecure hack.

Maybe you have a colon in your filename,
but it is no reason to mix access protocols.
parent 1981b988
......@@ -2049,27 +2049,6 @@ static int InputSourceInit( input_thread_t *p_input,
psz_access, psz_demux, psz_path,
p_input->b_preparsing );
}
#ifndef WIN32 /* Remove this gross hack from the win32 build as colons
* are forbidden in filenames on Win32. */
/* Maybe we got something like: /Volumes/toto:titi/gabu.mpg */
if( in->p_access == NULL &&
*psz_access == '\0' && ( *psz_demux || *psz_path ) )
{
strcpy (psz_dup, psz_mrl);
psz_access = "";
if( psz_forced_demux && *psz_forced_demux )
{
psz_demux = psz_forced_demux;
}
else psz_demux = "";
psz_path = psz_dup;
in->p_access = access2_New( p_input,
psz_access, psz_demux, psz_path,
p_input->b_preparsing );
}
#endif
if( in->p_access == NULL )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment