aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-29 22:33:46 +0100
committerMax Kellermann <max@duempel.org>2009-12-29 22:33:46 +0100
commitc7d099c75736664867914fd5013a0a844cd23adc (patch)
tree5e96dcabfe51a5cefbdcbc1047d9180d1120e1e1 /src/decoder/flac_plugin.c
parentd38c09051cbed3941f028fe76a1ac8ced280a549 (diff)
downloadmpd-c7d099c75736664867914fd5013a0a844cd23adc.tar.gz
mpd-c7d099c75736664867914fd5013a0a844cd23adc.tar.xz
mpd-c7d099c75736664867914fd5013a0a844cd23adc.zip
decoder/{ffmpeg,flac,vorbis}: added more flac/vorbis MIME types
Support deprecated MIME types such as "audio/x-ogg". Support new types such as "audio/flac".
Diffstat (limited to 'src/decoder/flac_plugin.c')
-rw-r--r--src/decoder/flac_plugin.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index 0c0d994b7..1e568f70d 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -871,9 +871,11 @@ oggflac_decode(struct decoder *decoder, struct input_stream *input_stream)
static const char *const oggflac_suffixes[] = { "ogg", "oga", NULL };
static const char *const oggflac_mime_types[] = {
- "audio/x-flac+ogg",
"application/ogg",
"application/x-ogg",
+ "audio/ogg",
+ "audio/x-flac+ogg",
+ "audio/x-ogg",
NULL
};
@@ -894,7 +896,11 @@ const struct decoder_plugin oggflac_decoder_plugin = {
static const char *const flac_suffixes[] = { "flac", NULL };
static const char *const flac_mime_types[] = {
- "audio/x-flac", "application/x-flac", NULL
+ "application/flac",
+ "application/x-flac",
+ "audio/flac",
+ "audio/x-flac",
+ NULL
};
const struct decoder_plugin flac_decoder_plugin = {