[vlc-commits] stats: remove write-only decode_sub

Rémi Denis-Courmont git at videolan.org
Tue Dec 12 19:36:43 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 12 20:06:09 2017 +0200| [be09af9bbcc7fb6598cfc7b18bd1414f417e071a] | committer: Rémi Denis-Courmont

stats: remove write-only decode_sub

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

 src/input/decoder.c        | 8 --------
 src/input/input.c          | 1 -
 src/input/input_internal.h | 1 -
 3 files changed, 10 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 1368fd30a4..859a190796 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1279,14 +1279,6 @@ static int DecoderQueueSpu( decoder_t *p_dec, subpicture_t *p_spu )
 {
     assert( p_spu );
     decoder_owner_sys_t *p_owner = p_dec->p_owner;
-    input_thread_t *p_input = p_owner->p_input;
-
-    if( p_input != NULL )
-    {
-        vlc_mutex_lock( &input_priv(p_input)->counters.counters_lock );
-        input_priv(p_input)->counters.decoded_sub++;
-        vlc_mutex_unlock( &input_priv(p_input)->counters.counters_lock );
-    }
 
     int i_ret = -1;
     vout_thread_t *p_vout = input_resource_HoldVout( p_owner->p_resource );
diff --git a/src/input/input.c b/src/input/input.c
index b395ec9760..ed0fbeef3b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -824,7 +824,6 @@ static void InitStatistics( input_thread_t *p_input )
         priv->counters.lost_pictures = 0;
         priv->counters.decoded_audio = 0;
         priv->counters.decoded_video = 0;
-        priv->counters.decoded_sub = 0;
         priv->counters.sout_sent_packets = 0;
         priv->counters.sout_sent_bytes = 0;
         input_rate_Init( &priv->counters.input_bitrate );
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index 2d67c5c3cc..efcef15cf9 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -166,7 +166,6 @@ typedef struct input_thread_private_t
         uintmax_t demux_discontinuity;
         uintmax_t decoded_audio;
         uintmax_t decoded_video;
-        uintmax_t decoded_sub;
         uintmax_t sout_sent_packets;
         uintmax_t sout_sent_bytes;
         input_rate_t sout_send_bitrate;



More information about the vlc-commits mailing list