[MPlayer-users] Re: mms fails with >= 1.0pre5 [PATCH to fix]
David Purton
dcpurton at chariot.net.au
Sat Nov 20 03:19:34 CET 2004
David Purton <dcpurton <at> chariot.net.au> writes:
>
> Hi,
>
> I'm trying to play this stream:
> mms://insm55.abc.net.au/wmtencoder/digjazz.wmv
>
OK, I found what the problem is. Partly I'm impatient :) As noted in my parent
post, mplayer first tries to connect using the ASF/TCP protocol to port 1755,
which is filtered on the remote server. Eventaully it does time out - after 30
seconds (can this be dropped a bit? Waiting 30 secs, is a fair time to have to
wait.)
When this eventaully fails, mplayer falls back to ASF/HTTP - which is good, but
the problem is that in asf_mmst_streaming.c, there is a line like this:
if( url1->port==0 ) {
url1->port=1755;
}
s = connect2Server( url1->hostname, url1->port, 1);
So when the ASF/TCP connection to 1755 fails for any reason, the port is left at
1755 and mplayer then tries to connect using ASF/HTTP to port 1755 instead of
80, like it should.
You could fix this by doing something like this instead:
if( url1->port==0 ) {
s = connect2Server( url1->hostname, 1755, 1);
}
s = connect2Server( url1->hostname, url1->port, 1);
}
Patch is included below, not attached, sorry, I'm posting from gmane.
Hope this helps,
dc
Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.25
diff -u -r1.25 asf_mmst_streaming.c
--- asf_mmst_streaming.c 10 Oct 2004 13:00:56 -0000 1.25
+++ asf_mmst_streaming.c 20 Nov 2004 02:04:47 -0000
@@ -492,9 +492,10 @@
if( url1->port==0 ) {
- url1->port=1755;
+ s = connect2Server( url1->hostname, 1755, 1);
+ }
+ s = connect2Server( url1->hostname, url1->port, 1);
}
- s = connect2Server( url1->hostname, url1->port, 1);
if( s<0 ) {
free(path);
return s;
More information about the MPlayer-users
mailing list