summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-05 16:41:16 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-05 18:34:29 -0800
commit8e1390e73433cede480c85828518fedada700d59 (patch)
treea926bf8d919f478859533b6a772cb72b83790653 /demux/demux.h
parent95dce50347cd9110c4a575483b1dfbd8b27f50f6 (diff)
downloadmpv-8e1390e73433cede480c85828518fedada700d59.tar.bz2
mpv-8e1390e73433cede480c85828518fedada700d59.tar.xz
demux: export some debugging fields about low level demuxer behavior
Export them as explicitly undocumented debugging fields for the "demuxer-cache-state" property. Should be somewhat helpful to debug "wtf is the demuxer" doing situations better, especially when seeking. It also becomes visible how long the demuxer is blocked on an "old" seek when you keep seeking while the first seek hasn't finished.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h
index 85bd5fd626..e0c68a82cb 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -53,6 +53,9 @@ struct demux_ctrl_reader_state {
double ts_end; // approx. timestamp of end of buffered range
int64_t total_bytes;
int64_t fw_bytes;
+ double seeking; // current low level seek target, or NOPTS
+ int low_level_seeks; // number of started low level seeks
+ double ts_last; // approx. timestamp of demuxer position
// Positions that can be seeked to without incurring the latency of a low
// level seek.
int num_seek_ranges;