aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-28 19:40:39 +0100
committerMax Kellermann <max@duempel.org>2009-02-28 19:40:39 +0100
commita5c09c91c414ba08d915331797e717334ac06456 (patch)
tree07930ab077be8e08d1f880b34a4f6bfd69317bb3 /src
parentd29db0111c1548da3dd8c5cdeba4173938f32da1 (diff)
downloadmpd-a5c09c91c414ba08d915331797e717334ac06456.tar.gz
mpd-a5c09c91c414ba08d915331797e717334ac06456.tar.xz
mpd-a5c09c91c414ba08d915331797e717334ac06456.zip
output: added option to disable audio outputs by default
The option "enabled" is on by default. If you specify "enabled no" in an audio_output section, then this device is disabled by default.
Diffstat (limited to 'src')
-rw-r--r--src/output_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output_init.c b/src/output_init.c
index 004b73e84..962a805af 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -91,7 +91,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
ao->name = name;
ao->plugin = plugin;
- ao->enabled = true;
+ ao->enabled = config_get_block_bool(param, "enabled", true);
ao->open = false;
ao->reopen_after = 0;