mixer/Control: convert pointers to references
This commit is contained in:
@@ -75,7 +75,7 @@ audio_output_disable_index(MultipleOutputs &outputs,
|
||||
|
||||
auto *mixer = ao.GetMixer();
|
||||
if (mixer != nullptr) {
|
||||
mixer_close(mixer);
|
||||
mixer_close(*mixer);
|
||||
mixer_memento.InvalidateHardwareVolume();
|
||||
idle_add(IDLE_MIXER);
|
||||
}
|
||||
@@ -102,7 +102,7 @@ audio_output_toggle_index(MultipleOutputs &outputs,
|
||||
if (!enabled) {
|
||||
auto *mixer = ao.GetMixer();
|
||||
if (mixer != nullptr) {
|
||||
mixer_close(mixer);
|
||||
mixer_close(*mixer);
|
||||
mixer_memento.InvalidateHardwareVolume();
|
||||
idle_add(IDLE_MIXER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user