[vlc-devel] commit: lua: also add some statistics. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Nov 20 11:39:48 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Nov 20 11:39:50 2009 +0100| [d452d256a22879fd0d831092c3e8900cecf9896a] | committer: Rémi Duraffort
lua: also add some statistics.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d452d256a22879fd0d831092c3e8900cecf9896a
---
modules/misc/lua/libs/input.c | 2 ++
share/lua/intf/rc.lua | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/libs/input.c b/modules/misc/lua/libs/input.c
index ef6ee9a..68fbee2 100644
--- a/modules/misc/lua/libs/input.c
+++ b/modules/misc/lua/libs/input.c
@@ -176,6 +176,8 @@ static int vlclua_input_stats( lua_State *L )
STATS_FLOAT( input_bitrate )
STATS_INT( demux_read_bytes )
STATS_FLOAT( demux_bitrate )
+ STATS_INT( demux_corrupted )
+ STATS_INT( demux_discontinuity )
STATS_INT( decoded_video )
STATS_INT( displayed_pictures )
STATS_INT( lost_pictures )
diff --git a/share/lua/intf/rc.lua b/share/lua/intf/rc.lua
index e922ed0..4f9725d 100644
--- a/share/lua/intf/rc.lua
+++ b/share/lua/intf/rc.lua
@@ -329,6 +329,8 @@ function stats(name,client)
client:append("| input bitrate : "..string.format("%6.0f bB/s",stats_tab["input_bitrate"]*8000))
client:append("| demux bytes read : "..string.format("%8.0f kB",stats_tab["demux_read_bytes"]/1000))
client:append("| demux bitrate : "..string.format("%6.0f kB/s",stats_tab["demux_bitrate"]*8000))
+ client:append("| demux corrupted : "..string.format("%5i",stats_tab["demux_corrupted"]))
+ client:append("| discontinuities : "..string.format("%5i",stats_tab["demux_discontinuity"]))
client:append("|")
client:append("+-[Video Decoding]")
client:append("| video decoded : "..string.format("%5i",stats_tab["decoded_video"]))
More information about the vlc-devel
mailing list