mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
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
This commit is contained in:
parent
367419a18b
commit
4114557255
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user