fixed seek to EOF pos

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2000 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-09-27 20:36:53 +00:00
parent 4a0d746998
commit 7166780c87
1 changed files with 3 additions and 1 deletions

View File

@ -132,11 +132,13 @@ if(newpos==0 || newpos!=s->pos){
}
stream_fill_buffer(s);
if(pos>=0 && pos<s->buf_len){
if(pos>=0 && pos<=s->buf_len){
s->buf_pos=pos; // byte position in sector
return 1;
}
// if(pos==s->buf_len) printf("XXX Seek to last byte of file -> EOF\n");
#ifdef _LARGEFILE_SOURCE
mp_msg(MSGT_STREAM,MSGL_V,"stream_seek: WARNING! Can't seek to 0x%llX !\n",(long long)(pos+newpos));
#else