summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-12 20:16:28 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-12 20:16:28 +0000
commita3ebbb1025c37e90e368e29ceb062ab1af81e543 (patch)
treea53620e41a9241c3dc9a2f64fa39a4a46bcd9e80 /libmpdemux
parentf082d01575d82e8f246befa948f46ab0d5f91b58 (diff)
downloadmpv-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')
-rw-r--r--libmpdemux/stream.c2
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;