From 4dfaa373846e79f1bc34b50426c1584b948c0eb6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Sep 2018 13:04:45 +0200 Subject: demux, stream: readd cache-speed in some other form it's more like an input speed rather than a cache speed, but who cares. --- demux/demux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'demux/demux.h') 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. -- cgit v1.2.3