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

input: fix NULL dereference with --demux ""

parent 7937e7e4
......@@ -2170,7 +2170,7 @@ static int InputSourceInit( input_thread_t *p_input,
/* special hack for forcing a demuxer with --demux=module
* (and do nothing with a list) */
psz_var_demux = var_GetNonEmptyString( p_input, "demux" );
psz_demux = psz_var_demux;
psz_demux = (psz_var_demux != NULL) ? psz_var_demux : "any";
msg_Dbg( p_input, "specified demux `%s'", psz_demux );
}
......
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