mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
read stats new
This commit is contained in:
parent
47832f873f
commit
0c276e437b
@ -475,8 +475,11 @@ static int stream_read_unbuffered(stream_t *s, void *buf, int len)
|
|||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
// we will retry even if we already reached EOF previously.
|
// 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);
|
res = s->fill_buffer(s, buf, len);
|
||||||
|
MP_STATS(s, "value %d read-end", len);
|
||||||
|
}
|
||||||
if (res <= 0) {
|
if (res <= 0) {
|
||||||
s->eof = 1;
|
s->eof = 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user