changeset 25971:64b1e4ea04fc

Always display Icy-Metadata if available, whether we recognize an ICY-Server or not. I can not think of a reason why this should hurt.
author reimar
date Fri, 15 Feb 2008 20:32:45 +0000
parents c6ec51cc3b13
children 63531b22e351
files stream/http.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/http.c	Fri Feb 15 20:31:10 2008 +0000
+++ b/stream/http.c	Fri Feb 15 20:32:45 2008 +0000
@@ -772,13 +772,14 @@
 			seekable = strncmp(accept_ranges,"bytes",5)==0;
 		}
 
+		print_icy_metadata(http_hdr);
+
 		// Check if the response is an ICY status_code reason_phrase
 		if( !strcasecmp(http_hdr->protocol, "ICY") ||
 		     http_get_field(http_hdr, "Icy-MetaInt") ) {
 			switch( http_hdr->status_code ) {
 				case 200: { // OK
 					char *field_data;
-					print_icy_metadata(http_hdr);
 					// If content-type == video/nsv we most likely have a winamp video stream 
 					// otherwise it should be mp3. if there are more types consider adding mime type 
 					// handling like later