# HG changeset patch # User reimar # Date 1122207750 0 # Node ID 095e980cf7c08052c9178fa66f09ef6f550432c2 # Parent 05d04911e8cecba22569d4f3c841541de8ec6274 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. diff -r 05d04911e8ce -r 095e980cf7c0 libmpdemux/http.c --- 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;