Commit 8c82fc74 authored by Thomas Guillem's avatar Thomas Guillem

decoder: display one frame on flush if video is paused

parent 9cb94277
......@@ -1877,6 +1877,12 @@ void input_DecoderFlush( decoder_t *p_dec )
block_ChainRelease( vlc_fifo_DequeueAllUnlocked( p_owner->p_fifo ) );
p_owner->flushing = true;
/* Flushing video decoder when paused: increment frames_countdown in order
* to display one frame */
if( p_owner->fmt.i_cat == VIDEO_ES && p_owner->paused
&& p_owner->frames_countdown == 0 )
p_owner->frames_countdown++;
vlc_fifo_Signal( p_owner->p_fifo );
/* Monitor for flush end */
......
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