summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h4
1 files changed, 4 insertions, 0 deletions
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;