mirror of https://github.com/mpv-player/mpv
Enable the read-based forward seek fallback also when CONFIG_NETWORK is
enabled. Enabling network support should not have side-effects on code not really related to networking. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29926 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
00ef6412f4
commit
dc19e32d67
|
@ -331,8 +331,9 @@ if(newpos==0 || newpos!=s->pos){
|
||||||
mp_msg(MSGT_STREAM,MSGL_INFO,"Stream not seekable!\n");
|
mp_msg(MSGT_STREAM,MSGL_INFO,"Stream not seekable!\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#else
|
#endif
|
||||||
if(newpos<s->pos){
|
if(newpos<s->pos){
|
||||||
mp_msg(MSGT_STREAM,MSGL_INFO,"Cannot seek backward in linear streams!\n");
|
mp_msg(MSGT_STREAM,MSGL_INFO,"Cannot seek backward in linear streams!\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -340,7 +341,6 @@ if(newpos==0 || newpos!=s->pos){
|
||||||
while(s->pos<newpos){
|
while(s->pos<newpos){
|
||||||
if(stream_fill_buffer(s)<=0) break; // EOF
|
if(stream_fill_buffer(s)<=0) break; // EOF
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// This should at the beginning as soon as all streams are converted
|
// This should at the beginning as soon as all streams are converted
|
||||||
|
|
Loading…
Reference in New Issue