[vlc-commits] Remove dead stats_DumpInputStats() function

Rémi Denis-Courmont git at videolan.org
Tue Nov 29 18:18:09 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 29 19:12:43 2011 +0200| [5816597cc47f2222103c11168aded6c19dff015d] | committer: Rémi Denis-Courmont

Remove dead stats_DumpInputStats() function

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

 src/libvlc.h     |    1 -
 src/misc/stats.c |   18 ------------------
 2 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/src/libvlc.h b/src/libvlc.h
index f7c55ff..ad0c68e 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -291,6 +291,5 @@ static inline int stats_UpdateFloat( vlc_object_t *p_obj, counter_t *p_co,
 
 void stats_ComputeInputStats(input_thread_t*, input_stats_t*);
 void stats_ReinitInputStats(input_stats_t *);
-void stats_DumpInputStats(input_stats_t *);
 
 #endif
diff --git a/src/misc/stats.c b/src/misc/stats.c
index 2f796a5..ba90eb4 100644
--- a/src/misc/stats.c
+++ b/src/misc/stats.c
@@ -223,24 +223,6 @@ void stats_ReinitInputStats( input_stats_t *p_stats )
     vlc_mutex_unlock( &p_stats->lock );
 }
 
-void stats_DumpInputStats( input_stats_t *p_stats  )
-{
-    vlc_mutex_lock( &p_stats->lock );
-    /* f_bitrate is in bytes / microsecond
-     * *1000 => bytes / millisecond => kbytes / seconds */
-    fprintf( stderr, "Input : %"PRId64" (%"PRId64" bytes) - %f kB/s - "
-                     "Demux : %"PRId64" (%"PRId64" bytes) - %f kB/s\n"
-                     " - Vout : %"PRId64"/%"PRId64" - Aout : %"PRId64"/%"PRId64" - Sout : %f\n",
-                    p_stats->i_read_packets, p_stats->i_read_bytes,
-                    p_stats->f_input_bitrate * 1000,
-                    p_stats->i_demux_read_packets, p_stats->i_demux_read_bytes,
-                    p_stats->f_demux_bitrate * 1000,
-                    p_stats->i_displayed_pictures, p_stats->i_lost_pictures,
-                    p_stats->i_played_abuffers, p_stats->i_lost_abuffers,
-                    p_stats->f_send_bitrate );
-    vlc_mutex_unlock( &p_stats->lock );
-}
-
 void stats_CounterClean( counter_t *p_c )
 {
     if( p_c )



More information about the vlc-commits mailing list