changeset 8929:c5ca1ae42555

check if seeking supported, otherwise fallback to null reading
author arpi
date Sun, 12 Jan 2003 20:16:28 +0000
parents c82c8144cef9
children 2c572a9c153f
files libmpdemux/stream.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;