diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-05 15:57:57 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-05 15:57:57 +0000 |
commit | 244b88472840fc5a404c35baa2655af8a972b158 (patch) | |
tree | 25ba4bd18ce92b8d7a90369350ca2b6993bb4848 | |
parent | ef14d50ad6298ed1df07f1034326878bf71149d8 (diff) | |
download | mpv-244b88472840fc5a404c35baa2655af8a972b158.tar.bz2 mpv-244b88472840fc5a404c35baa2655af8a972b158.tar.xz |
Do not make seek fail explicitly simply because eof was hit somewhen,
instead reuse the eof checking code further down.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31323 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/stream.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/stream/stream.h b/stream/stream.h index 1ff94a331c..9772065a4e 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -284,8 +284,6 @@ 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){ |