aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/network.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 69c6b8f9a7..deda8f7e74 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -602,7 +602,16 @@ extension=NULL;
*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
}