summaryrefslogtreecommitdiffstats
path: root/stream/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/cache.c')
-rw-r--r--stream/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/cache.c b/stream/cache.c
index 6f52609082..a377d4c96a 100644
--- a/stream/cache.c
+++ b/stream/cache.c
@@ -233,7 +233,7 @@ static bool cache_fill(struct priv *s)
cache_drop_contents(s);
}
- if (stream_tell(s->stream) != s->max_filepos) {
+ if (stream_tell(s->stream) != s->max_filepos && s->seekable) {
MP_VERBOSE(s, "Seeking underlying stream: %"PRId64" -> %"PRId64"\n",
stream_tell(s->stream), s->max_filepos);
stream_seek(s->stream, s->max_filepos);