Mercurial > mplayer.hg
diff stream/http.c @ 25968:c7f41f9e2eb8
Detect IceCast also by Icy-MetaInt header part in http_streaming_start(),
as in fixup_open()
| author | reimar |
|---|---|
| date | Fri, 15 Feb 2008 20:20:16 +0000 |
| parents | c8d5c8f0b9ef |
| children | 84eb56d278b2 |
line wrap: on
line diff
--- a/stream/http.c Fri Feb 15 07:50:27 2008 +0000 +++ b/stream/http.c Fri Feb 15 20:20:16 2008 +0000 @@ -756,7 +756,8 @@ } // 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;
