[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.78,1.79

Ross Finlayson CVS rsf at mplayerhq.hu
Sat May 3 08:14:07 CEST 2003


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

Modified Files:
	network.c 
Log Message:
We now check for "sip:" URLs - which are handled using the same LIVE.COM
code as "rtsp://" URLs.


Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- network.c	18 Apr 2003 22:33:30 -0000	1.78
+++ network.c	3 May 2003 06:14:04 -0000	1.79
@@ -602,7 +602,16 @@
 			*file_format = DEMUXER_TYPE_RTP;
 			return 0;
 #else
-			mp_msg(MSGT_NETWORK,MSGL_ERR,"RTSP protocol support requires the \"LIVE.COM Streaming Media\" libraries!\n");
+			mp_msg(MSGT_NETWORK,MSGL_ERR,"RTSP support requires the \"LIVE.COM Streaming Media\" libraries!\n");
+			return -1;
+#endif
+		// Checking for SIP
+		} else if( !strcasecmp(url->protocol, "sip") ) {
+#ifdef STREAMING_LIVE_DOT_COM
+			*file_format = DEMUXER_TYPE_RTP;
+			return 0;
+#else
+			mp_msg(MSGT_NETWORK,MSGL_ERR,"SIP support requires the \"LIVE.COM Streaming Media\" libraries!\n");
 			return -1;
 #endif
 		}



More information about the MPlayer-cvslog mailing list