changeset 10055:2e6d63e564f2

We now check for "sip:" URLs - which are handled using the same LIVE.COM code as "rtsp://" URLs.
author rsf
date Sat, 03 May 2003 06:14:04 +0000
parents 1342075f81f0
children 88c855a174f3
files libmpdemux/network.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/network.c	Sat May 03 06:13:11 2003 +0000
+++ b/libmpdemux/network.c	Sat May 03 06:14:04 2003 +0000
@@ -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
 		}