# HG changeset patch # User rtognimp # Date 1105914628 0 # Node ID 47dc1d9c350ddeb72e689957b3f0ba8a2fd69826 # Parent b7c21220e6da3c9338ea0f43c0418d2d7eac6a1f If asf/tcp fails, asf/http used a wrong port Fixes mms://mms.thestreet.com/cramer011205.wma diff -r b7c21220e6da -r 47dc1d9c350d libmpdemux/asf_streaming.c --- a/libmpdemux/asf_streaming.c Sun Jan 16 22:07:44 2005 +0000 +++ b/libmpdemux/asf_streaming.c Sun Jan 16 22:30:28 2005 +0000 @@ -50,6 +50,7 @@ asf_streaming_start( stream_t *stream, int *demuxer_type) { char *proto = stream->streaming_ctrl->url->protocol; int fd = -1; + int port = stream->streaming_ctrl->url->port; // Is protocol even valid mms,mmsu,mmst,http,http_proxy? if (!(!strncasecmp(proto, "mmst", 4) || !strncasecmp(proto, "mmsu", 4) || @@ -75,6 +76,7 @@ { mp_msg(MSGT_NETWORK,MSGL_V,"Trying ASF/TCP...\n"); fd = asf_mmst_streaming_start( stream ); + stream->streaming_ctrl->url->port = port; if( fd>-1 ) return fd; mp_msg(MSGT_NETWORK,MSGL_V," ===> ASF/TCP failed\n"); if( fd==-2 ) return -1; @@ -86,6 +88,7 @@ { mp_msg(MSGT_NETWORK,MSGL_V,"Trying ASF/HTTP...\n"); fd = asf_http_streaming_start( stream, demuxer_type ); + stream->streaming_ctrl->url->port = port; if( fd>-1 ) return fd; mp_msg(MSGT_NETWORK,MSGL_V," ===> ASF/HTTP failed\n"); if( fd==-2 ) return -1;