[1mdiff --git a/src/audio/player.c b/src/audio/player.c[m
[1mindex c08b20fc..35786284 100644[m
[1m--- a/src/audio/player.c[m
[1m+++ b/src/audio/player.c[m
[36m@@ -459,22 +459,29 @@[m [mstatic int silence_Player_(const iPlayer *d) {[m
return d->spec.silence;[m
}[m
[m
[32m+[m[32mstatic iRangecc mediaType_(const iString *str) {[m
[32m+[m[32m iRangecc part = iNullRange;[m
[32m+[m[32m nextSplit_Rangecc(range_String(str), ";", &part);[m
[32m+[m[32m return part;[m
[32m+[m[32m}[m
[32m+[m
static iContentSpec contentSpec_Player_(const iPlayer *d) {[m
iContentSpec content;[m
iZap(content);[m
const size_t dataSize = size_InputBuf(d->data);[m
iBuffer *buf = iClob(new_Buffer());[m
open_Buffer(buf, &d->data->data);[m
[31m- if (!cmp_String(&d->mime, "audio/wave") || !cmp_String(&d->mime, "audio/wav") ||[m
[31m- !cmp_String(&d->mime, "audio/x-wav") || !cmp_String(&d->mime, "audio/x-pn-wav")) {[m
[32m+[m[32m const iRangecc mediaType = mediaType_(&d->mime);[m
[32m+[m[32m if (equal_Rangecc(mediaType, "audio/wave") || equal_Rangecc(mediaType, "audio/wav") ||[m
[32m+[m[32m equal_Rangecc(mediaType, "audio/x-wav") || equal_Rangecc(mediaType, "audio/x-pn-wav")) {[m
content.type = wav_DecoderType;[m
}[m
[31m- else if (!cmp_String(&d->mime, "audio/vorbis") || !cmp_String(&d->mime, "audio/ogg") ||[m
[31m- !cmp_String(&d->mime, "audio/x-vorbis+ogg")) {[m
[32m+[m[32m else if (equal_Rangecc(mediaType, "audio/vorbis") || equal_Rangecc(mediaType, "audio/ogg") ||[m
[32m+[m[32m equal_Rangecc(mediaType, "audio/x-vorbis+ogg")) {[m
content.type = vorbis_DecoderType;[m
}[m
#if defined (LAGRANGE_ENABLE_MPG123)[m
[31m- else if (!cmp_String(&d->mime, "audio/mpeg") || !cmp_String(&d->mime, "audio/mp3")) {[m
[32m+[m[32m else if (equal_Rangecc(mediaType, "audio/mpeg") || equal_Rangecc(mediaType, "audio/mp3")) {[m
content.type = mpeg_DecoderType;[m
}[m
#endif[m
text/plain
This content has been proxied by September (ba2dc).