From de2ae95defef080425e3578aaffba6c94abbb026 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 15 Feb 2008 20:20:16 +0000 Subject: Detect IceCast also by Icy-MetaInt header part in http_streaming_start(), as in fixup_open() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26000 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/http.c b/stream/http.c index ac484f84d9..4e02d63d73 100644 --- a/stream/http.c +++ b/stream/http.c @@ -756,7 +756,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) { } // Check if the response is an ICY status_code reason_phrase - if( !strcasecmp(http_hdr->protocol, "ICY") ) { + if( !strcasecmp(http_hdr->protocol, "ICY") || + http_get_field(http_hdr, "Icy-MetaInt") ) { switch( http_hdr->status_code ) { case 200: { // OK char *field_data = NULL; -- cgit v1.2.3