From 411455725579a541a05dd88b192041aa397ae574 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 15 Feb 2008 20:32:45 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26003 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 b071dc81ef..55f1383b05 100644 --- a/stream/http.c +++ b/stream/http.c @@ -772,13 +772,14 @@ static int http_streaming_start(stream_t *stream, int* file_format) { 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 -- cgit v1.2.3