diff options
author | wm4 <wm4@nowhere> | 2020-02-05 19:04:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-05 19:14:08 +0100 |
commit | 3ee463e80cc49e0d8a7002e9244d4b4679ef4a88 (patch) | |
tree | 10f7c6966f9d24d329bd659ec76b62c990ac9f13 | |
parent | 5f83b6a5f5939ce39af929f200b1ea236fbe350c (diff) | |
download | mpv-3ee463e80cc49e0d8a7002e9244d4b4679ef4a88.tar.bz2 mpv-3ee463e80cc49e0d8a7002e9244d4b4679ef4a88.tar.xz |
read stats oldread_stats_old
-rw-r--r-- | stream/stream.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c index 072672d1ed..6e2e19e91f 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -337,8 +337,13 @@ static int stream_read_unbuffered(stream_t *s, void *buf, int len) int res = 0; s->buf_pos = s->buf_len = 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)) { + if (!s->underlying) + MP_STATS(s, "value %d read-start", len); res = s->fill_buffer(s, buf, len); + if (!s->underlying) + MP_STATS(s, "value %d read-end", len); + } if (res <= 0) { s->eof = 1; return 0; |