[vlc-devel] [PATCH 1/6] decoder: don't count decoded frames twice

Steve Lhomme robux4 at ycbcr.xyz
Wed Sep 4 11:03:57 CEST 2019


The blocks on the decoder input are not even decoded frames and they can be
NULL. The decoded frames are already counted when the pictures/audio blocks
come out of the decoder and are queued for playback.
---
 src/input/decoder.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 085ba5ebb4b..3bd8b0bab2d 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1257,7 +1257,6 @@ static void DecoderDecode( struct decoder_owner *p_owner, block_t *p_block )
     switch( ret )
     {
         case VLCDEC_SUCCESS:
-            p_owner->pf_update_stat( p_owner, 1, 0 );
             break;
         case VLCDEC_ECRITICAL:
             p_owner->error = true;
-- 
2.17.1



More information about the vlc-devel mailing list