mirror of https://github.com/mpv-player/mpv
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:
parent
ef14d50ad6
commit
244b884728
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue