aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-28 18:34:10 +0200
committerMax Kellermann <max@duempel.org>2008-09-28 18:34:10 +0200
commit75cba9343ec4bf93d9677792c1fbf9e9f5837a72 (patch)
tree35d3a1b0e91483e2dd22c38713ba565cfac6b303
parent531a44e9e3477eb836e52b95aebd649743f4fb0b (diff)
downloadmpd-75cba9343ec4bf93d9677792c1fbf9e9f5837a72.tar.gz
mpd-75cba9343ec4bf93d9677792c1fbf9e9f5837a72.tar.xz
mpd-75cba9343ec4bf93d9677792c1fbf9e9f5837a72.zip
output: fix the "outputenabled" value
Patch 9a5b5998 broke the "outputenabled" value of the "outputs" response. Make it print "1" if the output is enabled, "0" otherwise.
Diffstat (limited to '')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index d3e3ac908..e79d0e547 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -471,7 +471,7 @@ void printAudioDevices(struct client *client)
"outputenabled: %i\n",
i,
audioOutputArray[i].name,
- audioDeviceStates[i]);
+ audioDeviceStates[i] == DEVICE_ENABLE);
}
}