From a5c09c91c414ba08d915331797e717334ac06456 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2009 19:40:39 +0100 Subject: 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. --- src/output_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output_init.c') 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; -- cgit v1.2.3