[MPlayer-users] [PATCH] Re: mms URL causes mplayer to hang
adland
adland123 at yahoo.com
Mon Jun 7 00:13:59 CEST 2004
> The following URL hangs during connect
>
> mms://view.trailers.be/hig/pubfr.asf
Thank you for your report.
1. This URL is invalid (that it does not play in windows media player
under windows) - most likley it was just some logo/advert anyway because
it is in every playlist.
2. It does lockup both MPlayer and mmsclient which the asf streaming
was based on.
3. It was the first entry in your playlists so any other files never played.
4. I have made a small patch to fix the issue by not locking up
and exiting on this kind of invalid files.
tested using this link from website
mplayer -playlist http://www.agenda.be///cin/video/hig/fr12317.asx
good luck
--- main/libmpdemux/asf_mmst_streaming.c 2004-04-05 17:31:27.000000000 -0400
+++ updated/libmpdemux/asf_mmst_streaming.c 2004-06-06 18:08:22.000000000 -0400
@@ -171,7 +171,7 @@
len = recv (s, &buf[total], count-total, 0);
- if (len<0) {
+ if (len<=0) {
perror ("read error:");
return 0;
}
@@ -538,6 +538,7 @@
asf_header_len = get_header (s, asf_header, stream->streaming_ctrl);
// printf("---------------------------------- asf_header %d\n",asf_header);
+ if (asf_header_len==0) return -1; //error reading header
packet_length = interp_header (asf_header, asf_header_len);
More information about the MPlayer-users
mailing list