[vlc-devel] [PATCH] input: decoder: don't count decoded frames twice

Steve Lhomme robux4 at videolabs.io
Mon May 15 10:43:08 CEST 2017


The decoded frames are already counted in DecoderQueueVideo() for each frame
coming out of decoder_QueueVideo().
We may also drop this line altogether.
---
 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index a32ec709d7..21c0ffdb74 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1285,7 +1285,7 @@ static void DecoderDecode( decoder_t *p_dec, block_t *p_block )
     switch( ret )
     {
         case VLCDEC_SUCCESS:
-            p_owner->pf_update_stat( p_owner, 1, 0 );
+            p_owner->pf_update_stat( p_owner, 0, 0 );
             break;
         case VLCDEC_ECRITICAL:
             p_owner->error = true;
-- 
2.12.1



More information about the vlc-devel mailing list