Commit 32040fdc authored by Thomas Guillem's avatar Thomas Guillem

decoder: fix signal call from input_DecoderFlush

Since recent changes, DecoderThread need to be signaled only when
frames_countdown is incremented.
parent 122bccd0
...@@ -1889,9 +1889,10 @@ void input_DecoderFlush( decoder_t *p_dec ) ...@@ -1889,9 +1889,10 @@ void input_DecoderFlush( decoder_t *p_dec )
* to display one frame */ * to display one frame */
if( p_owner->fmt.i_cat == VIDEO_ES && p_owner->paused if( p_owner->fmt.i_cat == VIDEO_ES && p_owner->paused
&& p_owner->frames_countdown == 0 ) && p_owner->frames_countdown == 0 )
{
p_owner->frames_countdown++; p_owner->frames_countdown++;
vlc_fifo_Signal( p_owner->p_fifo );
vlc_fifo_Signal( p_owner->p_fifo ); }
/* Monitor for flush end */ /* Monitor for flush end */
while( !p_owner->flushed ) while( !p_owner->flushed )
......
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