changeset 16078:095e980cf7c0

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.
author reimar
date Sun, 24 Jul 2005 12:22:30 +0000
parents 05d04911e8ce
children 96d10b705bc6
files libmpdemux/http.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/http.c	Sun Jul 24 12:06:54 2005 +0000
+++ b/libmpdemux/http.c	Sun Jul 24 12:22:30 2005 +0000
@@ -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;