mirror of https://github.com/mpv-player/mpv
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:
parent
4a0d746998
commit
7166780c87
4
stream.c
4
stream.c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue