diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-14 22:19:21 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-14 22:19:21 +0300 |
commit | b073e4c6aad0a4c35ea89c4592d5b48a39bb61f5 (patch) | |
tree | 4c35506cd40ba0af0ef3c1d526435b8abd1b9f70 /src/gmrequest.c | |
parent | 625e3046cc636db5b0325b96b4c22610252a5ab4 (diff) |
Use libmpg123 to decode MPEG audio
mpg123 is configured as an optional dependency. Works for full files currently.
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c index dd2c2720..7b6414d2 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c | |||
@@ -460,6 +460,9 @@ void submit_GmRequest(iGmRequest *d) { | |||
460 | else if (endsWithCase_String(path, ".ogg")) { | 460 | else if (endsWithCase_String(path, ".ogg")) { |
461 | setCStr_String(&d->resp.meta, "audio/ogg"); | 461 | setCStr_String(&d->resp.meta, "audio/ogg"); |
462 | } | 462 | } |
463 | else if (endsWithCase_String(path, ".mp3")) { | ||
464 | setCStr_String(&d->resp.meta, "audio/mpeg"); | ||
465 | } | ||
463 | else { | 466 | else { |
464 | setCStr_String(&d->resp.meta, "application/octet-stream"); | 467 | setCStr_String(&d->resp.meta, "application/octet-stream"); |
465 | } | 468 | } |