[vlc-commits] decoder: display one frame on flush if video is paused
Thomas Guillem
git at videolan.org
Mon Nov 9 14:23:23 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 9 11:30:30 2015 +0100| [8c82fc749d901d8e0ec1ddd11339918b1addd886] | committer: Thomas Guillem
decoder: display one frame on flush if video is paused
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c82fc749d901d8e0ec1ddd11339918b1addd886
---
src/input/decoder.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 31d81b7..8da034a 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -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 */
More information about the vlc-commits
mailing list