From a3ebbb1025c37e90e368e29ceb062ab1af81e543 Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 12 Jan 2003 20:16:28 +0000 Subject: check if seeking supported, otherwise fallback to null reading git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8930 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpdemux') diff --git a/libmpdemux/stream.c b/libmpdemux/stream.c index c710117fc8..704dbc3c1a 100644 --- a/libmpdemux/stream.c +++ b/libmpdemux/stream.c @@ -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; -- cgit v1.2.3