From 00270acd0e85ad081cbc885e296ef84c6964850a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sun, 18 Apr 2021 17:34:38 +0300
Subject: [PATCH 1/1] Player: Fixed audio media type check
IssueID #249
src/audio/player.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/audio/player.c b/src/audio/player.c
index c08b20fc..35786284 100644
--- a/src/audio/player.c
+++ b/src/audio/player.c
@@ -459,22 +459,29 @@ static int silence_Player_(const iPlayer *d) {
return d->spec.silence;
}
+static iRangecc mediaType_(const iString *str) {
+}
static iContentSpec contentSpec_Player_(const iPlayer *d) {
iContentSpec content;
iZap(content);
const size_t dataSize = size_InputBuf(d->data);
iBuffer *buf = iClob(new_Buffer());
open_Buffer(buf, &d->data->data);
!cmp_String(&d->mime, "audio/x-wav") || !cmp_String(&d->mime, "audio/x-pn-wav")) {
equal_Rangecc(mediaType, "audio/x-wav") || equal_Rangecc(mediaType, "audio/x-pn-wav")) {
content.type = wav_DecoderType;
}
!cmp_String(&d->mime, "audio/x-vorbis+ogg")) {
equal_Rangecc(mediaType, "audio/x-vorbis+ogg")) {
content.type = vorbis_DecoderType;
}
#if defined (LAGRANGE_ENABLE_MPG123)
content.type = mpeg_DecoderType;
}
#endif
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).