Commit cf0901c3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

input: correct default value check for $demux (fixes #10475)

parent 6dc87602
......@@ -143,7 +143,7 @@ demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
const char *psz_ext;
const char *psz_module = p_demux->psz_demux;
if( *psz_module && p_demux->psz_file != NULL
if( !strcmp(psz_module, "any") && p_demux->psz_file != NULL
&& (psz_ext = strrchr( p_demux->psz_file, '.' )) != NULL )
{
psz_ext++; // skip '.'
......
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