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:
arpi 2003-01-12 20:16:28 +00:00
parent f082d01575
commit a3ebbb1025
1 changed files with 1 additions and 1 deletions

View File

@ -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;