# HG changeset patch # User arpi # Date 1042402588 0 # Node ID c5ca1ae42555f7fee0731f63100bd2d205eb9221 # Parent c82c8144cef9401d512c67879559c454f9c785ff check if seeking supported, otherwise fallback to null reading diff -r c82c8144cef9 -r c5ca1ae42555 libmpdemux/stream.c --- a/libmpdemux/stream.c Sun Jan 12 20:11:20 2003 +0000 +++ b/libmpdemux/stream.c Sun Jan 12 20:16:28 2003 +0000 @@ -210,7 +210,7 @@ // 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;