summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-03 13:20:21 +0200
committerwm4 <wm4@nowhere>2020-04-03 13:20:21 +0200
commit28edf2d0f0af74e2078cebbeda0441d6f91c9e60 (patch)
tree8982cd5ff3f5edc86db31d47aa02aa732112aee3 /player/command.c
parenteeb711f5f3e6222a890ea61b0294a10d8270b85b (diff)
downloadmpv-28edf2d0f0af74e2078cebbeda0441d6f91c9e60.tar.bz2
mpv-28edf2d0f0af74e2078cebbeda0441d6f91c9e60.tar.xz
command: make input speed available as part of cache statge property
That's where it comes from after all. The other property does not have much of a reason to exist anymore, but there's no real reason to remove it either.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index bd31708318..e1f755d46c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1441,6 +1441,8 @@ static int mp_property_demuxer_cache_state(void *ctx, struct m_property *prop,
node_map_add_int64(r, "fw-bytes", s.fw_bytes);
if (s.file_cache_bytes >= 0)
node_map_add_int64(r, "file-cache-bytes", s.file_cache_bytes);
+ if (s.bytes_per_second > 0)
+ node_map_add_int64(r, "raw-input-rate", s.bytes_per_second);
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);