diff options
author | wm4 <wm4@nowhere> | 2017-11-10 16:43:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-11-10 16:43:18 +0100 |
commit | 8e50dc1b4dda5d15ddf0b1cc28b907356b956512 (patch) | |
tree | 1a4b752cebef99ef578cf38e585dedb651b676dd /player/command.c | |
parent | 1b0dc7d169cc7ef3ef20727781b1e8fee5ca159f (diff) | |
download | mpv-8e50dc1b4dda5d15ddf0b1cc28b907356b956512.tar.bz2 mpv-8e50dc1b4dda5d15ddf0b1cc28b907356b956512.tar.xz |
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.)
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |