aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_init.c1
-rw-r--r--src/output_internal.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/output_init.c b/src/output_init.c
index 16b4dfb73..9393e295b 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -85,6 +85,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param)
ao->name = name;
ao->plugin = plugin;
+ ao->enabled = true;
ao->open = false;
ao->convBuffer = NULL;
diff --git a/src/output_internal.h b/src/output_internal.h
index d3f650086..0fae6f304 100644
--- a/src/output_internal.h
+++ b/src/output_internal.h
@@ -41,6 +41,11 @@ struct audio_output {
void *data;
/**
+ * Has the user enabled this device?
+ */
+ bool enabled;
+
+ /**
* Is the device (already) open and functional?
*/
bool open;