summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-16 22:30:28 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-16 22:30:28 +0000
commitaa3d2fd97a6bf897d9b6e1737daf51413df78123 (patch)
tree69e37c858b921bc835fe829c225ca6bcbf6d9a09 /libmpdemux
parent9d25ccf48437ca7c16f46aa24a08339aa5a2c8ac (diff)
downloadmpv-aa3d2fd97a6bf897d9b6e1737daf51413df78123.tar.bz2
mpv-aa3d2fd97a6bf897d9b6e1737daf51413df78123.tar.xz
If asf/tcp fails, asf/http used a wrong port
Fixes mms://mms.thestreet.com/cramer011205.wma git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14526 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asf_streaming.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/asf_streaming.c b/libmpdemux/asf_streaming.c
index 8dbc305513..184898d506 100644
--- a/libmpdemux/asf_streaming.c
+++ b/libmpdemux/asf_streaming.c
@@ -50,6 +50,7 @@ int
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 @@ asf_streaming_start( stream_t *stream, int *demuxer_type) {
{
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 @@ asf_streaming_start( stream_t *stream, int *demuxer_type) {
{
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;