[MPlayer-cvslog] CVS: main/libmpdemux http.c,1.27,1.28
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sun Jul 24 14:22:32 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv26474
Modified Files:
http.c
Log Message:
Some ICY servers (e.g. http://broadcast.spnet.net:8000/darikhigh) do not set
the protocol correctly, so look for icy-metaint in the response instead.
Index: http.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/http.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- http.c 23 Jul 2005 15:29:51 -0000 1.27
+++ http.c 24 Jul 2005 12:22:30 -0000 1.28
@@ -841,7 +841,7 @@
static int fixup_open(stream_t *stream,int seekable) {
HTTP_header_t *http_hdr = stream->streaming_ctrl->data;
- int is_icy = http_hdr && strcasecmp(http_hdr->protocol, "ICY") == 0;
+ int is_icy = http_hdr && http_get_field(http_hdr, "Icy-MetaInt");
char *content_type = http_get_field( http_hdr, "Content-Type" );
int is_ultravox = strcasecmp(stream->streaming_ctrl->url->protocol, "unsv") == 0;
More information about the MPlayer-cvslog
mailing list