diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-08 09:29:14 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:07:16 +0200 |
commit | 8de983fe7f447d5b5a567dc9947184d19f1b6095 (patch) | |
tree | 1a41929ee211b0e881518e2f4c2df68ec9fc34f7 /libmpdemux | |
parent | c280fd08c3ee5b81dc3ef83d274cd9972c5c29bc (diff) | |
download | mpv-8de983fe7f447d5b5a567dc9947184d19f1b6095.tar.bz2 mpv-8de983fe7f447d5b5a567dc9947184d19f1b6095.tar.xz |
rtsp: Support RTSP/RTP over HTTP via LIVE555
Patch by Malte Särner, malte D sarner A multiq se
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31347 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix compilation with nemesi and live555.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31348 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_nemesi.c | 1 | ||||
-rw-r--r-- | libmpdemux/demux_rtp.cpp | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libmpdemux/demux_nemesi.c b/libmpdemux/demux_nemesi.c index 704c31e4b1..3d2d413a4a 100644 --- a/libmpdemux/demux_nemesi.c +++ b/libmpdemux/demux_nemesi.c @@ -27,6 +27,7 @@ #include "nemesi/rtp.h" #include <sched.h> +int rtsp_transport_http = 0; int rtsp_transport_tcp = 0; int rtsp_transport_sctp = 0; int rtsp_port = 0; diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp index 8a5cfb8460..1dc7703921 100644 --- a/libmpdemux/demux_rtp.cpp +++ b/libmpdemux/demux_rtp.cpp @@ -113,8 +113,10 @@ static char* openURL_sip(SIPClient* client, char const* url) { #ifdef CONFIG_LIBNEMESI extern int rtsp_transport_tcp; +extern int rtsp_transport_http; #else int rtsp_transport_tcp = 0; +int rtsp_transport_http = 0; #endif extern int rtsp_port; @@ -147,7 +149,11 @@ extern "C" demuxer_t* demux_open_rtp(demuxer_t* demuxer) { char const* url = demuxer->stream->streaming_ctrl->url->url; extern int verbose; if (strcmp(protocol, "rtsp") == 0) { - rtspClient = RTSPClient::createNew(*env, verbose, "MPlayer"); + if (rtsp_transport_http == 1) { + rtsp_transport_http = demuxer->stream->streaming_ctrl->url->port; + rtsp_transport_tcp = 1; + } + rtspClient = RTSPClient::createNew(*env, verbose, "MPlayer", rtsp_transport_http); if (rtspClient == NULL) { fprintf(stderr, "Failed to create RTSP client: %s\n", env->getResultMsg()); |