lua: also add some statistics.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 20 Nov 2009 10:39:50 +0000 (11:39 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 20 Nov 2009 10:39:50 +0000 (11:39 +0100)
modules/misc/lua/libs/input.c
share/lua/intf/rc.lua

index ef6ee9a..68fbee2 100644 (file)
@@ -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 )
index e922ed0..4f9725d 100644 (file)
@@ -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"]))