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
This commit is contained in:
reimar 2008-02-15 20:20:16 +00:00
parent 5839f06341
commit de2ae95def
1 changed files with 2 additions and 1 deletions

View File

@ -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;