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
This commit is contained in:
reimar 2010-06-05 15:57:57 +00:00
parent ef14d50ad6
commit 244b884728
1 changed files with 0 additions and 2 deletions

View File

@ -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){