[vlc-commits] Revert "decoder: count dropped video at decoder level"

Francois Cartegnie git at videolan.org
Sat Jul 4 15:50:46 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Jul  4 15:45:21 2015 +0200| [6e89c5f3ff8804b73135b8e5bf3bdb4dccea1f9e] | committer: Francois Cartegnie

Revert "decoder: count dropped video at decoder level"

This reverts commit 6aeaeaa02239a0cb6474c2504c1d525b006c41bd.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e89c5f3ff8804b73135b8e5bf3bdb4dccea1f9e
---

 src/input/decoder.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index a314410..68d8e7c 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -934,11 +934,9 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
     int i_lost = 0;
     int i_decoded = 0;
     int i_displayed = 0;
-    bool b_lost = !!p_block;
 
     while( (p_pic = p_dec->pf_decode_video( p_dec, &p_block )) )
     {
-        b_lost = false;
         vout_thread_t  *p_vout = p_owner->p_vout;
         if( DecoderIsFlushing( p_dec ) )
         {   /* It prevent freezing VLC in case of broken decoder */
@@ -972,9 +970,6 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
         DecoderPlayVideo( p_dec, p_pic, &i_displayed, &i_lost );
     }
 
-    if( b_lost )
-        i_lost++;
-
     /* Update ugly stat */
     input_thread_t *p_input = p_owner->p_input;
 



More information about the vlc-commits mailing list