mirror of https://github.com/mpv-player/mpv
check if seeking supported, otherwise fallback to null reading
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8930 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f082d01575
commit
a3ebbb1025
|
@ -210,7 +210,7 @@ if(newpos==0 || newpos!=s->pos){
|
|||
// A function call that return -1 can tell that the protocol
|
||||
// doesn't support seeking.
|
||||
#ifdef STREAMING
|
||||
if( s->streaming_ctrl!=NULL ) {
|
||||
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_seek ) {
|
||||
if( s->streaming_ctrl->streaming_seek( s->fd, pos, s->streaming_ctrl )<0 ) {
|
||||
mp_msg(MSGT_STREAM,MSGL_INFO,"Stream not seekable!\n");
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue