[vlc-devel] [PATCH] libvlc: remove unused sout stats

Steve Lhomme robux4 at ycbcr.xyz
Tue Oct 22 11:42:30 CEST 2019


---
 include/vlc/libvlc_media.h | 5 -----
 lib/media.c                | 4 ----
 2 files changed, 9 deletions(-)

diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index aab025ae28e..68611812703 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -133,11 +133,6 @@ typedef struct libvlc_media_stats_t
     /* Audio output */
     int         i_played_abuffers;
     int         i_lost_abuffers;
-
-    /* Stream output */
-    int         i_sent_packets;
-    int         i_sent_bytes;
-    float       f_send_bitrate;
 } libvlc_media_stats_t;
 
 typedef struct libvlc_audio_track_t
diff --git a/lib/media.c b/lib/media.c
index dd0513633f6..8860a9e1aa1 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -728,10 +728,6 @@ bool libvlc_media_get_stats(libvlc_media_t *p_md,
     p_stats->i_played_abuffers = p_itm_stats->i_played_abuffers;
     p_stats->i_lost_abuffers = p_itm_stats->i_lost_abuffers;
 
-    p_stats->i_sent_packets = 0;
-    p_stats->i_sent_bytes = 0;
-    p_stats->f_send_bitrate = 0.;
-
     vlc_mutex_unlock( &item->lock );
     return true;
 }
-- 
2.17.1



More information about the vlc-devel mailing list