diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-03-10 00:34:16 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-03-10 00:34:16 +0200 |
commit | 327463be525b12e3d00d5fa0e8e15d5000fcd27b (patch) | |
tree | 37db96b1a1b4b1b941706e4e4c4dcdec9cbd4ed2 /stream/stream.h | |
parent | 7e90be7093daa79fc26dedac6cfb90e87c8acaff (diff) | |
parent | 88a8591bc6ae6b9fdbf293ac75967cb9e21f4875 (diff) | |
download | mpv-327463be525b12e3d00d5fa0e8e15d5000fcd27b.tar.bz2 mpv-327463be525b12e3d00d5fa0e8e15d5000fcd27b.tar.xz |
Merge svn changes up to r30672
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 2 |
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){ |