[vlc-devel] [PATCH 1/4] decoder: fix signal call from input_DecoderFlush

Thomas Guillem thomas at gllm.fr
Tue Nov 17 19:34:09 CET 2015


Since recent changes, DecoderThread need to be signaled only when
frames_countdown is incremented.
---
 src/input/decoder.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index cacf7f2..b5af0a9 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1889,9 +1889,10 @@ void input_DecoderFlush( decoder_t *p_dec )
      * 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 );
+        vlc_fifo_Signal( p_owner->p_fifo );
+    }
 
     /* Monitor for flush end */
     while( !p_owner->flushed )
-- 
2.1.4



More information about the vlc-devel mailing list