Add support for mmsh:// as alias for mmshttp://

Patch by Francesco Cosoleto [cosoleto gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29064 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-03-26 11:00:04 +00:00
parent ab921d2cb6
commit 127480e660
1 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,8 @@ static int asf_streaming_start( stream_t *stream, int *demuxer_type) {
//Is protocol http, http_proxy, or mms? //Is protocol http, http_proxy, or mms?
if (!strcasecmp(proto, "http_proxy") || !strcasecmp(proto, "http") || if (!strcasecmp(proto, "http_proxy") || !strcasecmp(proto, "http") ||
!strcasecmp(proto, "mms") || !strcasecmp(proto, "mmshttp")) !strcasecmp(proto, "mms") || !strcasecmp(proto, "mmsh") ||
!strcasecmp(proto, "mmshttp"))
{ {
mp_msg(MSGT_NETWORK,MSGL_V,"Trying ASF/HTTP...\n"); mp_msg(MSGT_NETWORK,MSGL_V,"Trying ASF/HTTP...\n");
fd = asf_http_streaming_start( stream, demuxer_type ); fd = asf_http_streaming_start( stream, demuxer_type );
@ -847,7 +848,7 @@ const stream_info_t stream_info_asf = {
"Bertrand, Reimar Doeffinger, Albeu", "Bertrand, Reimar Doeffinger, Albeu",
"originally based on work by Majormms (is that code still there?)", "originally based on work by Majormms (is that code still there?)",
open_s, open_s,
{"mms", "mmsu", "mmst", "http", "http_proxy", "mmshttp", NULL}, {"mms", "mmsu", "mmst", "http", "http_proxy", "mmsh", "mmshttp", NULL},
NULL, NULL,
0 // Urls are an option string 0 // Urls are an option string
}; };