aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/flac_plugin.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-14 03:07:50 +0000
committerEric Wong <normalperson@yhbt.net>2007-01-14 03:07:50 +0000
commit45716f877b940ffa38efc82d1692cbcc216caba2 (patch)
tree992bbd9d70d286ae852bab6c81880cffe0615b5d /src/inputPlugins/flac_plugin.c
parent3c2d123ab95227f7382fbaef56f25318b57d4ea8 (diff)
downloadmpd-45716f877b940ffa38efc82d1692cbcc216caba2.tar.gz
mpd-45716f877b940ffa38efc82d1692cbcc216caba2.tar.xz
mpd-45716f877b940ffa38efc82d1692cbcc216caba2.zip
flac/ogg/oggflac: keep old mime-types in addition to the new ones
We'll be dealing with legacy server configurations for a long time to come. git-svn-id: https://svn.musicpd.org/mpd/trunk@5253 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/flac_plugin.c')
-rw-r--r--src/inputPlugins/flac_plugin.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index 81dc223ab..0b5ad5752 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -478,7 +478,10 @@ static unsigned int oggflac_try_decode(InputStream * inStream)
}
static char *oggflac_suffixes[] = { "ogg", NULL };
-static char *oggflac_mime_types[] = { "audio/x-flac+ogg", NULL };
+static char *oggflac_mime_types[] = { "audio/x-flac+ogg",
+ "application/ogg",
+ "application/x-ogg",
+ NULL };
static int flac_plugin_init(void)
{
@@ -503,7 +506,9 @@ static int flac_plugin_init(void)
#endif /* FLAC_API_VERSION_CURRENT >= 7 */
static char *flacSuffixes[] = { "flac", NULL };
-static char *flac_mime_types[] = { "audio/x-flac", NULL };
+static char *flac_mime_types[] = { "audio/x-flac",
+ "application/x-flac",
+ NULL };
InputPlugin flacPlugin = {
"flac",