aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputCommand.cxx')
-rw-r--r--src/OutputCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/OutputCommand.cxx b/src/OutputCommand.cxx
index beb44f0ef..3921a9634 100644
--- a/src/OutputCommand.cxx
+++ b/src/OutputCommand.cxx
@@ -64,7 +64,6 @@ bool
audio_output_disable_index(unsigned idx)
{
struct audio_output *ao;
- struct mixer *mixer;
if (idx >= audio_output_count())
return false;
@@ -76,7 +75,7 @@ audio_output_disable_index(unsigned idx)
ao->enabled = false;
idle_add(IDLE_OUTPUT);
- mixer = ao->mixer;
+ Mixer *mixer = ao->mixer;
if (mixer != NULL) {
mixer_close(mixer);
idle_add(IDLE_MIXER);