[vlc-commits] stats: remove dead reinit function
Rémi Denis-Courmont
git at videolan.org
Mon Dec 11 21:02:21 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 11 20:58:12 2017 +0200| [3d840b92d21e23086ee7e4af7217ae6a27ccb909] | committer: Rémi Denis-Courmont
stats: remove dead reinit function
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d840b92d21e23086ee7e4af7217ae6a27ccb909
---
src/input/stats.c | 17 -----------------
src/libvlc.h | 1 -
2 files changed, 18 deletions(-)
diff --git a/src/input/stats.c b/src/input/stats.c
index 9a21f250f3..5210ea28de 100644
--- a/src/input/stats.c
+++ b/src/input/stats.c
@@ -75,7 +75,6 @@ input_stats_t *stats_NewInputStats( input_thread_t *p_input )
return NULL;
vlc_mutex_init( &p_stats->lock );
- stats_ReinitInputStats( p_stats );
return p_stats;
}
@@ -123,22 +122,6 @@ void stats_ComputeInputStats(input_thread_t *input, input_stats_t *st)
vlc_mutex_unlock(&priv->counters.counters_lock);
}
-void stats_ReinitInputStats( input_stats_t *p_stats )
-{
- vlc_mutex_lock( &p_stats->lock );
- p_stats->i_read_packets = p_stats->i_read_bytes =
- p_stats->f_input_bitrate = p_stats->f_average_input_bitrate =
- p_stats->i_demux_read_packets = p_stats->i_demux_read_bytes =
- p_stats->f_demux_bitrate = p_stats->f_average_demux_bitrate =
- p_stats->i_demux_corrupted = p_stats->i_demux_discontinuity =
- p_stats->i_displayed_pictures = p_stats->i_lost_pictures =
- p_stats->i_played_abuffers = p_stats->i_lost_abuffers =
- p_stats->i_decoded_video = p_stats->i_decoded_audio =
- p_stats->i_sent_bytes = p_stats->i_sent_packets = p_stats->f_send_bitrate
- = 0;
- vlc_mutex_unlock( &p_stats->lock );
-}
-
void stats_CounterClean( counter_t *p_c )
{
if( p_c )
diff --git a/src/libvlc.h b/src/libvlc.h
index 34ce312df8..7bb5ac47ee 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -220,6 +220,5 @@ void stats_Update(counter_t *, uint64_t);
void stats_CounterClean (counter_t * );
void stats_ComputeInputStats(input_thread_t*, input_stats_t*);
-void stats_ReinitInputStats(input_stats_t *);
#endif
More information about the vlc-commits
mailing list