diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-05 00:39:07 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-05 00:39:07 +0000 |
commit | fa788640e26698f98070cc01be09dc5071580881 (patch) | |
tree | 3963d1dd69d48ad440e02251286001d90f5fbb01 /libmpdemux/open.c | |
parent | 11bc29e6cc3aaa2a70562f1142609d2800e2f6b9 (diff) | |
download | mpv-fa788640e26698f98070cc01be09dc5071580881.tar.bz2 mpv-fa788640e26698f98070cc01be09dc5071580881.tar.xz |
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
see <http://www.live.com/mplayer/> for details.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6911 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r-- | libmpdemux/open.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index c202895dcf..6d4473ca46 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -22,6 +22,10 @@ #ifdef STREAMING #include "url.h" #include "network.h" +#ifdef STREAMING_LIVE_DOT_COM +#include "demux_rtp.h" +int isSDPFile = 0; +#endif static URL_t* url; #endif @@ -471,6 +475,14 @@ tv_err: #else mp_msg(MSGT_OPEN,MSGL_V,"File size is %u bytes\n", (unsigned int)len); #endif + +#ifdef STREAMING_LIVE_DOT_COM + // Check for a special case: a SDP file: + if (isSDPFile) { + return stream_open_sdp(f, len, file_format); + } +#endif + stream=new_stream(f,STREAMTYPE_FILE); stream->end_pos=len; return stream; |