summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-05 19:04:10 +0100
committerwm4 <wm4@nowhere>2020-02-05 19:04:10 +0100
commit0c276e437bc606d67133192840430ce81b1311df (patch)
tree3d1fcb177b130ee4cadfaa8de2311a3c26f8f0c7
parent47832f873f941455d64937743576b17545a69a83 (diff)
downloadmpv-read_stats_new.tar.bz2
mpv-read_stats_new.tar.xz
read stats newread_stats_new
-rw-r--r--stream/stream.c5
1 files changed, 4 insertions, 1 deletions
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;