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

input: fix assertion

So far, pf_demux is mandatory for unpaced demuxers.
parent f2ee786a
......@@ -2318,10 +2318,7 @@ static input_source_t *InputSourceNew( input_thread_t *p_input,
&in->b_can_pace_control ) )
in->b_can_pace_control = false;
demux_t *p_demux = in->p_demux;
while (p_demux->p_next)
p_demux = p_demux->p_next;
assert( p_demux->pf_demux != NULL || !in->b_can_pace_control );
assert( in->p_demux->pf_demux != NULL || !in->b_can_pace_control );
if( !in->b_can_pace_control )
{
......
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