summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-09-01 13:04:45 +0200
committerAnton Kindestam <antonki@kth.se>2018-12-06 10:30:41 +0100
commit4dfaa373846e79f1bc34b50426c1584b948c0eb6 (patch)
tree145bc5c7d1ae9e23efc431f29234e29c148de5e4 /demux/demux.h
parentb1ba7de34dd5685a082454817f23509d1c28e4aa (diff)
downloadmpv-4dfaa373846e79f1bc34b50426c1584b948c0eb6.tar.bz2
mpv-4dfaa373846e79f1bc34b50426c1584b948c0eb6.tar.xz
demux, stream: readd cache-speed in some other form
it's more like an input speed rather than a cache speed, but who cares.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h
index 5b92e97f49..956548d90b 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -56,6 +56,7 @@ struct demux_ctrl_reader_state {
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
+ uint64_t bytes_per_second; // low level statistics
// Positions that can be seeked to without incurring the latency of a low
// level seek.
int num_seek_ranges;
@@ -236,6 +237,9 @@ typedef struct demuxer {
// Triggered when ending demuxing forcefully. Usually bound to the stream too.
struct mp_cancel *cancel;
+ // Demuxer thread only.
+ uint64_t total_unbuffered_read_bytes;
+
// Since the demuxer can run in its own thread, and the stream is not
// thread-safe, only the demuxer is allowed to access the stream directly.
// You can freely use demux_stream_control() to send STREAM_CTRLs.