[vlc-devel] [RFC PATCH 2/5] decoder: frames_countdown is only for Video
Thomas Guillem
thomas at gllm.fr
Fri Nov 6 14:48:44 CET 2015
---
src/input/decoder.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index daf4479..c89b49a 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2134,10 +2134,13 @@ void input_DecoderFrameNext( decoder_t *p_dec, mtime_t *pi_duration )
assert( p_owner->paused );
*pi_duration = 0;
- vlc_fifo_Lock( p_owner->p_fifo );
- p_owner->frames_countdown++;
- vlc_fifo_Signal( p_owner->p_fifo );
- vlc_fifo_Unlock( p_owner->p_fifo );
+ if( p_owner->fmt.i_cat == VIDEO_ES )
+ {
+ vlc_fifo_Lock( p_owner->p_fifo );
+ p_owner->frames_countdown++;
+ vlc_fifo_Signal( p_owner->p_fifo );
+ vlc_fifo_Unlock( p_owner->p_fifo );
+ }
vlc_mutex_lock( &p_owner->lock );
if( p_owner->fmt.i_cat == VIDEO_ES )
--
2.1.4
More information about the vlc-devel
mailing list