[vlc-commits] decoder: don't count decoded frames twice
Steve Lhomme
git at videolan.org
Thu Sep 12 15:57:10 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 4 10:46:20 2019 +0200| [068a8f5c259ead9f1efff84fad738bee5f9aa0cf] | committer: Steve Lhomme
decoder: don't count decoded frames twice
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=068a8f5c259ead9f1efff84fad738bee5f9aa0cf
---
src/input/decoder.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index b6229b3359..aa2443fc43 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1291,7 +1291,6 @@ static void DecoderThread_DecodeBlock( struct decoder_owner *p_owner, block_t *p
switch( ret )
{
case VLCDEC_SUCCESS:
- p_owner->pf_update_stat( p_owner, 1, 0 );
break;
case VLCDEC_ECRITICAL:
p_owner->error = true;
More information about the vlc-commits
mailing list