diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-12 20:16:28 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-12 20:16:28 +0000 |
commit | a3ebbb1025c37e90e368e29ceb062ab1af81e543 (patch) | |
tree | a53620e41a9241c3dc9a2f64fa39a4a46bcd9e80 /libmpdemux/stream.c | |
parent | f082d01575d82e8f246befa948f46ab0d5f91b58 (diff) | |
download | mpv-a3ebbb1025c37e90e368e29ceb062ab1af81e543.tar.bz2 mpv-a3ebbb1025c37e90e368e29ceb062ab1af81e543.tar.xz |
check if seeking supported, otherwise fallback to null reading
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8930 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stream.c')
-rw-r--r-- | libmpdemux/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |