summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;