[vlc-devel] [PATCH] lua: add the late frames statistics

Steve Lhomme robux4 at ycbcr.xyz
Thu Aug 13 14:08:26 CEST 2020


In addition to displayed and dropped frames.
---
 modules/lua/libs/input.c | 1 +
 share/lua/intf/cli.lua   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 460dd79c83d..9cae1458546 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -617,6 +617,7 @@ static int vlclua_input_item_stats( lua_State *L )
         STATS_INT( decoded_audio )
         STATS_INT( decoded_video )
         STATS_INT( displayed_pictures )
+        STATS_INT( late_pictures )
         STATS_INT( lost_pictures )
         STATS_INT( played_abuffers )
         STATS_INT( lost_abuffers )
diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 02c6967abbc..ed1d2a1139e 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -354,6 +354,7 @@ function stats(name,client)
     client:append("+-[Video Decoding]")
     client:append("| video decoded    :    "..string.format("%5i",stats_tab["decoded_video"]))
     client:append("| frames displayed :    "..string.format("%5i",stats_tab["displayed_pictures"]))
+    client:append("| frames late      :    "..string.format("%5i",stats_tab["late_pictures"]))
     client:append("| frames lost      :    "..string.format("%5i",stats_tab["lost_pictures"]))
     client:append("|")
     client:append("+-[Audio Decoding]")
-- 
2.26.2



More information about the vlc-devel mailing list