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);

     content.type = wav_DecoderType;

 }

     content.type = vorbis_DecoderType;

 }

#if defined (LAGRANGE_ENABLE_MPG123)

     content.type = mpeg_DecoderType;

 }

#endif

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.10/patch/00270acd0e85ad081cbc885e296ef84c6964850a.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
51.382333 milliseconds
Gemini-to-HTML Time
0.962996 milliseconds

This content has been proxied by September (ba2dc).