[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.49,1.50

Arpi of Ize arpi at mplayerhq.hu
Sun Jan 12 21:16:31 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv16350

Modified Files:
	stream.c 
Log Message:
check if seeking supported, otherwise fallback to null reading


Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- stream.c	5 Jan 2003 23:51:05 -0000	1.49
+++ stream.c	12 Jan 2003 20:16:28 -0000	1.50
@@ -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;



More information about the MPlayer-cvslog mailing list