mixer/All: use Mixer::IsPlugin()

This commit is contained in:
Max Kellermann 2022-08-18 14:08:30 +02:00
parent cb288439a4
commit 5c4743441e

View File

@ -188,8 +188,8 @@ MultipleOutputs::SetSoftwareVolume(unsigned volume) noexcept
auto *mixer = ao->GetMixer();
if (mixer != nullptr &&
(&mixer->plugin == &software_mixer_plugin ||
&mixer->plugin == &null_mixer_plugin))
(mixer->IsPlugin(software_mixer_plugin) ||
mixer->IsPlugin(null_mixer_plugin)))
mixer_set_volume(mixer, volume);
}
}