summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-05-03 12:02:11 +0200
committerMax Kellermann <max@musicpd.org>2018-05-03 12:02:11 +0200
commit6522d2f72271367cc90a3b4f81c88a925d54981f (patch)
treeb712dd04d6e2e97774a3e20fe91ef4556f4274d8
parentac61fd1d78c3d57d8d72446a8b41cfb0c9c1906e (diff)
decoder/{dsdiff,dsf}: support more MIME types
These are used by DSD-streaming servers. For example, MiniDLNA uses "audio/x-dsd".
-rw-r--r--NEWS2
-rw-r--r--src/decoder/plugins/DsdiffDecoderPlugin.cxx2
-rw-r--r--src/decoder/plugins/DsfDecoderPlugin.cxx2
3 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 2f1bc0107..d7c78c319 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
ver 0.20.20 (not yet released)
* protocol
- fix "modified-since" filter regression
+* decoder
+ - dsdiff, dsf: support more MIME types
ver 0.20.19 (2018/04/26)
* protocol
diff --git a/src/decoder/plugins/DsdiffDecoderPlugin.cxx b/src/decoder/plugins/DsdiffDecoderPlugin.cxx
index 2c371559b..b427ab10f 100644
--- a/src/decoder/plugins/DsdiffDecoderPlugin.cxx
+++ b/src/decoder/plugins/DsdiffDecoderPlugin.cxx
@@ -484,6 +484,8 @@ static const char *const dsdiff_suffixes[] = {
static const char *const dsdiff_mime_types[] = {
"application/x-dff",
+ "audio/x-dff",
+ "audio/x-dsd",
nullptr
};
diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx
index 243d73ec5..1b008cc55 100644
--- a/src/decoder/plugins/DsfDecoderPlugin.cxx
+++ b/src/decoder/plugins/DsfDecoderPlugin.cxx
@@ -358,6 +358,8 @@ static const char *const dsf_suffixes[] = {
static const char *const dsf_mime_types[] = {
"application/x-dsf",
+ "audio/x-dsf",
+ "audio/x-dsd",
nullptr
};