Commit e5820468 authored by Filip Roséen's avatar Filip Roséen Committed by Thomas Guillem

demux/asf: fix stall on end-of-stream

These changes are a fixup of e2fb1043, in which a stupid brain-fart
caused me to invert the expression that is to see whether or not we
are at the end of stream.
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 665382ab
......@@ -241,9 +241,9 @@ static int Demux( demux_t *p_demux )
p_sys->i_time = p_sys->i_sendtime;
}
if( !p_sys->b_eos && ( p_sys->i_sendtime - p_sys->i_time - CHUNK >= 0 &&
( p_sys->i_sendtime - p_sys->i_time - CHUNK ) /
UINT64_C( 1000 ) >= p_sys->p_fp->i_preroll ) )
if( p_sys->b_eos || ( p_sys->i_sendtime - p_sys->i_time - CHUNK >= 0 &&
( p_sys->i_sendtime - p_sys->i_time - CHUNK ) /
UINT64_C( 1000 ) >= p_sys->p_fp->i_preroll ) )
{
bool b_data = Block_Dequeue( p_demux, p_sys->i_time + CHUNK );
......
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