summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-12 19:10:03 +0100
committerwm4 <wm4@nowhere>2020-02-12 19:10:03 +0100
commit469a124c71bcc3e47ee6362796bd9a506a98f235 (patch)
treeffa4f35d00b75d21801ba368ccd2ff59d4e3c429 /stream/stream_file.c
parentc3f93f5fdd33ada85e700bf8bad7d70f6739eed4 (diff)
downloadmpv-469a124c71bcc3e47ee6362796bd9a506a98f235.tar.bz2
mpv-469a124c71bcc3e47ee6362796bd9a506a98f235.tar.xz
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r--stream/stream_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index a79ef0e913..04e74c6b00 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -98,7 +98,9 @@ static int fill_buffer(stream_t *s, void *buffer, int max_len)
#endif
for (int retries = 0; retries < MAX_RETRIES; retries++) {
+ MP_STATS(s, "start read");
int r = read(p->fd, buffer, max_len);
+ MP_STATS(s, "end read");
if (r > 0)
return r;