From 244b88472840fc5a404c35baa2655af8a972b158 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 5 Jun 2010 15:57:57 +0000 Subject: [PATCH] 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 --- stream/stream.h | 2 -- 1 file changed, 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(pospos){ off_t x=pos-(s->pos-s->buf_len); if(x>=0){