summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 7c020b243f..03d7431df2 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -283,6 +283,8 @@ inline static int stream_seek(stream_t *s,off_t pos){
mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%qX\n",(long long)pos);
+ if(s->eof)
+ return 0;
if(pos<s->pos){
off_t x=pos-(s->pos-s->buf_len);
if(x>=0){