mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Some servers apparently send a Content-Type header of audio/x-mpeg.
Make icecast understand this. svn path=/icecast/trunk/icecast/; revision=6649
This commit is contained in:
parent
55ba59f3f7
commit
71388d47c6
@ -55,6 +55,8 @@ format_type_t format_get_type(char *contenttype)
|
||||
return FORMAT_TYPE_VORBIS; /* Now blessed by IANA */
|
||||
else if(strcmp(contenttype, "audio/mpeg") == 0)
|
||||
return FORMAT_TYPE_MP3;
|
||||
else if(strcmp(contenttype, "audio/x-mpeg") == 0)
|
||||
return FORMAT_TYPE_MP3; /* Relay-compatibility for some servers */
|
||||
else
|
||||
return FORMAT_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user