From 8e50dc1b4dda5d15ddf0b1cc28b907356b956512 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Nov 2017 16:43:09 +0100 Subject: demux: export demuxer cache sizes in bytes Plus sort of document them, together with the already existing undocumented fields. (This is mostly for debugging, so use is discouraged.) --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player') diff --git a/player/command.c b/player/command.c index c95f7e6054..807b2614a7 100644 --- a/player/command.c +++ b/player/command.c @@ -1755,6 +1755,8 @@ static int mp_property_demuxer_cache_state(void *ctx, struct m_property *prop, node_map_add_flag(r, "eof", s.eof); node_map_add_flag(r, "underrun", s.underrun); node_map_add_flag(r, "idle", s.idle); + node_map_add_int64(r, "total-bytes", s.total_bytes); + node_map_add_int64(r, "fw-bytes", s.fw_bytes); return M_PROPERTY_OK; } -- cgit v1.2.3