[MPlayer-cvslog] r26000 - trunk/stream/http.c

reimar subversion at mplayerhq.hu
Fri Feb 15 21:20:16 CET 2008


Author: reimar
Date: Fri Feb 15 21:20:16 2008
New Revision: 26000

Log:
Detect IceCast also by Icy-MetaInt header part in http_streaming_start(),
as in fixup_open()


Modified:
   trunk/stream/http.c

Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c	(original)
+++ trunk/stream/http.c	Fri Feb 15 21:20:16 2008
@@ -756,7 +756,8 @@ static int http_streaming_start(stream_t
 		}
 
 		// 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;



More information about the MPlayer-cvslog mailing list