From 5c4743441e2a022a093024b15aedfa60fb1e1e3c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Aug 2022 14:08:30 +0200 Subject: [PATCH] mixer/All: use Mixer::IsPlugin() --- src/mixer/MixerAll.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixer/MixerAll.cxx b/src/mixer/MixerAll.cxx index 302a06160..8cf8295e0 100644 --- a/src/mixer/MixerAll.cxx +++ b/src/mixer/MixerAll.cxx @@ -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); } }