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.
This commit is contained in:
Max Kellermann
2009-02-28 19:40:39 +01:00
parent d29db0111c
commit a5c09c91c4
2 changed files with 2 additions and 1 deletions

View File

@@ -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;