From 0c276e437bc606d67133192840430ce81b1311df Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 5 Feb 2020 19:04:10 +0100 Subject: read stats new --- stream/stream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stream/stream.c') diff --git a/stream/stream.c b/stream/stream.c index 157776cd87..d3df217023 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -475,8 +475,11 @@ static int stream_read_unbuffered(stream_t *s, void *buf, int len) int res = 0; // we will retry even if we already reached EOF previously. - if (s->fill_buffer && !mp_cancel_test(s->cancel)) + if (s->fill_buffer && !mp_cancel_test(s->cancel)) { + MP_STATS(s, "value %d read-start", len); res = s->fill_buffer(s, buf, len); + MP_STATS(s, "value %d read-end", len); + } if (res <= 0) { s->eof = 1; return 0; -- cgit v1.2.3