1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04: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:
Michael Smith 2004-05-11 02:24:18 +00:00
parent 55ba59f3f7
commit 71388d47c6

View File

@ -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;
}