decoder: don't flush if already flushed
This commit fixes the following assert in the DecoderThread function:
"assert( vlc_fifo_IsEmpty( p_owner->p_fifo) );"
Indeed, if input_DecoderFlush is called again (just after), p_owner->flushed
will be true and the input won't wait for the DecoderThread. As a consequence,
the input will send blocks while the DecoderThread is flushing, hence the
assert.
Signed-off-by:
Rémi Denis-Courmont <remi@remlab.net>
Showing
Please register or sign in to comment