mirror of
https://github.com/mpv-player/mpv
synced 2025-02-07 15:41:55 +00:00
Detect IceCast also by Icy-MetaInt header part in http_streaming_start(),
as in fixup_open() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26000 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5839f06341
commit
de2ae95def
@ -756,7 +756,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
|
||||
}
|
||||
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user