[vlc-commits] input item: remove unused stats members

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


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

input item: remove unused stats members

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

 include/vlc_input_item.h | 2 --
 modules/lua/libs/input.c | 2 --
 share/lua/README.txt     | 2 --
 3 files changed, 6 deletions(-)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index e83aba27fa..cc2a78036b 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -393,13 +393,11 @@ struct input_stats_t
     int64_t i_read_packets;
     int64_t i_read_bytes;
     float f_input_bitrate;
-    float f_average_input_bitrate;
 
     /* Demux */
     int64_t i_demux_read_packets;
     int64_t i_demux_read_bytes;
     float f_demux_bitrate;
-    float f_average_demux_bitrate;
     int64_t i_demux_corrupted;
     int64_t i_demux_discontinuity;
 
diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index fb09539bea..6c947786dc 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -205,11 +205,9 @@ static int vlclua_input_item_stats( lua_State *L )
         STATS_INT( read_packets )
         STATS_INT( read_bytes )
         STATS_FLOAT( input_bitrate )
-        STATS_FLOAT( average_input_bitrate )
         STATS_INT( demux_read_packets )
         STATS_INT( demux_read_bytes )
         STATS_FLOAT( demux_bitrate )
-        STATS_FLOAT( average_demux_bitrate )
         STATS_INT( demux_corrupted )
         STATS_INT( demux_discontinuity )
         STATS_INT( decoded_audio )
diff --git a/share/lua/README.txt b/share/lua/README.txt
index eb782ee030..0945de67a8 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -116,11 +116,9 @@ input.item(): Get the current input item. Input item methods are:
     .read_packets
     .read_bytes
     .input_bitrate
-    .average_input_bitrate
     .demux_read_packets
     .demux_read_bytes
     .demux_bitrate
-    .average_demux_bitrate
     .demux_corrupted
     .demux_discontinuity
     .decoded_audio



More information about the vlc-commits mailing list