summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-07 16:05:27 +0100
committerwm4 <wm4@nowhere>2019-11-07 22:53:13 +0100
commit19becc8ea911e74b5443420a8da411444f980725 (patch)
tree988baf142ea3ed3bd2dcea51bece2ca94ab2fa7d /player
parent6487abde79684ace6e24a127d1f62febf40f0d9b (diff)
downloadmpv-19becc8ea911e74b5443420a8da411444f980725.tar.bz2
mpv-19becc8ea911e74b5443420a8da411444f980725.tar.xz
stats, demux: log byte level stream seeks
Diffstat (limited to 'player')
-rw-r--r--player/command.c1
-rw-r--r--player/lua/stats.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index ac49157aee..ff1e10bdfe 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1548,6 +1548,7 @@ static int mp_property_demuxer_cache_state(void *ctx, struct m_property *prop,
if (s.seeking != MP_NOPTS_VALUE)
node_map_add_double(r, "debug-seeking", s.seeking);
node_map_add_int64(r, "debug-low-level-seeks", s.low_level_seeks);
+ node_map_add_int64(r, "debug-byte-level-seeks", s.byte_level_seeks);
if (s.ts_last != MP_NOPTS_VALUE)
node_map_add_double(r, "debug-ts-last", s.ts_last);
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 8df192db2a..a1cd566ab5 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -674,6 +674,7 @@ local function cache_stats()
append(stats, fc, {prefix = "Disk cache:"})
append(stats, info["debug-low-level-seeks"], {prefix = "Media seeks:"})
+ append(stats, info["debug-byte-level-seeks"], {prefix = "Stream seeks:"})
append(stats, "", {prefix=o.nl .. o.nl .. "Ranges:", nl="", indent=""})