aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-15 18:40:47 +0100
committerMax Kellermann <max@duempel.org>2009-02-15 18:40:47 +0100
commit1f88cd73d43b4b67b27a5b0ba48cfa990e628244 (patch)
treef77ed49991dfc89bbf7efa382bae5d79136383d1
parent6cfacc778c11565adc5af75cfa4579c1b6925c93 (diff)
downloadmpd-1f88cd73d43b4b67b27a5b0ba48cfa990e628244.tar.gz
mpd-1f88cd73d43b4b67b27a5b0ba48cfa990e628244.tar.xz
mpd-1f88cd73d43b4b67b27a5b0ba48cfa990e628244.zip
decoder_list: added configuration option to disable decoder plugins
-rw-r--r--NEWS1
-rw-r--r--src/decoder_list.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5559c0b40..af5307f35 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ ver 0.15 - (200?/??/??)
- sidplay: new decoder plugin for C64 SID (using libsidplay2)
- fluidsynth: new decoder plugin for MIDI files (using libfluidsynth)
- wildmidi: another decoder plugin for MIDI files (using libwildmidi)
+ - added configuration option to disable decoder plugins
* audio outputs:
- shout: enlarged buffer size to 32 kB
- null: allow disabling synchronization
diff --git a/src/decoder_list.c b/src/decoder_list.c
index a644a6370..34dc779c5 100644
--- a/src/decoder_list.c
+++ b/src/decoder_list.c
@@ -218,6 +218,10 @@ void decoder_plugin_init_all(void)
const struct config_param *param =
decoder_plugin_config(plugin->name);
+ if (!config_get_block_bool(param, "enabled", true))
+ /* the plugin is disabled in mpd.conf */
+ continue;
+
if (decoder_plugin_init(plugin, param))
decoder_plugins_enabled[i] = true;
}