From a3991078bde2266184fa3eb71b0e6228975f55db Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 May 2019 22:28:12 +0200 Subject: demux, command: export bof/eof flags Export these flags with demuxer-cache-state. Useful for debugging, but any client API users could also make use of it. --- player/command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 4aae5e21b8..dce975dca7 100644 --- a/player/command.c +++ b/player/command.c @@ -1502,6 +1502,9 @@ static int mp_property_demuxer_cache_state(void *ctx, struct m_property *prop, struct mpv_node *r = (struct mpv_node *)arg; node_init(r, MPV_FORMAT_NODE_MAP, NULL); + node_map_add_flag(r, "bof-cached", s.bof_cached); + node_map_add_flag(r, "eof-cached", s.eof_cached); + struct mpv_node *ranges = node_map_add(r, "seekable-ranges", MPV_FORMAT_NODE_ARRAY); for (int n = 0; n < s.num_seek_ranges; n++) { -- cgit v1.2.3