From 6522d2f72271367cc90a3b4f81c88a925d54981f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 3 May 2018 12:02:11 +0200 Subject: [PATCH] decoder/{dsdiff,dsf}: support more MIME types These are used by DSD-streaming servers. For example, MiniDLNA uses "audio/x-dsd". --- NEWS | 2 ++ src/decoder/plugins/DsdiffDecoderPlugin.cxx | 2 ++ src/decoder/plugins/DsfDecoderPlugin.cxx | 2 ++ 3 files changed, 6 insertions(+) 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 };