aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/OutputCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/OutputCommand.cxx')
-rw-r--r--src/output/OutputCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/OutputCommand.cxx b/src/output/OutputCommand.cxx
index dc7a540a2..c0719958f 100644
--- a/src/output/OutputCommand.cxx
+++ b/src/output/OutputCommand.cxx
@@ -53,7 +53,7 @@ audio_output_enable_index(MultipleOutputs &outputs, unsigned idx)
idle_add(IDLE_MIXER);
}
- ao.player_control->UpdateAudio();
+ ao.player_control->LockUpdateAudio();
++audio_output_state_version;
@@ -80,7 +80,7 @@ audio_output_disable_index(MultipleOutputs &outputs, unsigned idx)
idle_add(IDLE_MIXER);
}
- ao.player_control->UpdateAudio();
+ ao.player_control->LockUpdateAudio();
++audio_output_state_version;
@@ -106,7 +106,7 @@ audio_output_toggle_index(MultipleOutputs &outputs, unsigned idx)
}
}
- ao.player_control->UpdateAudio();
+ ao.player_control->LockUpdateAudio();
++audio_output_state_version;