[vlc-devel] [RFC PATCH 3/5] decoder: display one frame on flush
Thomas Guillem
thomas at gllm.fr
Fri Nov 6 14:48:45 CET 2015
---
src/input/decoder.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index c89b49a..0d52f2e 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1943,6 +1943,11 @@ static void DecoderFlush( decoder_t *p_dec )
/* Empty the fifo */
block_ChainRelease( vlc_fifo_DequeueAllUnlocked( p_owner->p_fifo ) );
p_owner->b_draining = false; /* flush supersedes drain */
+
+ if( p_owner->fmt.i_cat == VIDEO_ES && p_owner->paused
+ && p_owner->frames_countdown == 0 )
+ p_owner->frames_countdown++;
+
vlc_fifo_Unlock( p_owner->p_fifo );
/* Monitor for flush end */
--
2.1.4
More information about the vlc-devel
mailing list