diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-15 20:32:45 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-15 20:32:45 +0000 |
commit | 411455725579a541a05dd88b192041aa397ae574 (patch) | |
tree | a957a49a7202afc0813bc0f57823d2430bc36446 | |
parent | 367419a18ba5c2f6197d84d748c93f52cc208196 (diff) | |
download | mpv-411455725579a541a05dd88b192041aa397ae574.tar.bz2 mpv-411455725579a541a05dd88b192041aa397ae574.tar.xz |
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
-rw-r--r-- | stream/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |