[vlc-commits] decoder: fix signal call from input_DecoderFlush
Thomas Guillem
git at videolan.org
Thu Nov 19 10:18:57 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov 17 19:28:23 2015 +0100| [32040fdcb8c8bbafb44e73bed15df0e69f78ff88] | committer: Thomas Guillem
decoder: fix signal call from input_DecoderFlush
Since recent changes, DecoderThread need to be signaled only when
frames_countdown is incremented.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32040fdcb8c8bbafb44e73bed15df0e69f78ff88
---
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 dbbb1bb..589cde3 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 )
More information about the vlc-commits
mailing list