diff options
author | wm4 <wm4@nowhere> | 2020-02-16 16:03:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-16 16:03:34 +0100 |
commit | 824bdd8977f3de9e0ff227c1229d06276e8f3100 (patch) | |
tree | 772e9124f1cf1b0109f83a38d7e16d4d8fcfd7ff | |
parent | 74a2c0fb7f61ded74b1a66baff61783907433efa (diff) | |
download | mpv-stream_size_fstat_nocache.tar.bz2 mpv-stream_size_fstat_nocache.tar.xz |
disable cachingstream_size_fstat_nocache
-rw-r--r-- | stream/stream_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c index 9f83b73dd1..8a1df5f9e0 100644 --- a/stream/stream_file.c +++ b/stream/stream_file.c @@ -76,7 +76,7 @@ struct priv { static int64_t get_size(stream_t *s) { struct priv *p = s->priv; - if (p->cached_size == -2) { + //if (p->cached_size == -2) { int64_t size = -1; struct stat st; if (fstat(p->fd, &st) == 0) { @@ -85,7 +85,7 @@ static int64_t get_size(stream_t *s) size = st.st_size < 0 ? -1 : st.st_size; } p->cached_size = size; - } + //} return p->cached_size; } |