aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-29 20:49:51 +0100
committerMax Kellermann <max@duempel.org>2008-10-29 20:49:51 +0100
commitcf376b4bc862f98d09ddb2fc6ca4751ae259a3d2 (patch)
tree35363a2d380d32164b5fa69da0ae3bea3c0644ab /src/output
parent2f76db4c7842ffdb989d2081b0835a83a3219f35 (diff)
downloadmpd-cf376b4bc862f98d09ddb2fc6ca4751ae259a3d2.tar.gz
mpd-cf376b4bc862f98d09ddb2fc6ca4751ae259a3d2.tar.xz
mpd-cf376b4bc862f98d09ddb2fc6ca4751ae259a3d2.zip
output: moved audioDeviceStates to audio_output.enabled
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;