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. --- stream/stream.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index c91843de8a..971560f492 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -175,6 +175,10 @@ typedef struct stream { struct mp_cancel *cancel; // cancellation notification + // Read statistic for fill_buffer calls. All bytes read by fill_buffer() are + // added to this. The user can reset this as needed. + uint64_t total_unbuffered_read_bytes; + // Includes additional padding in case sizes get rounded up by sector size. unsigned char buffer[]; } stream_t; -- cgit v1.2.3