From 2b8f1170a64c33be35d45b79d6c8c3e4eebddf60 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Aug 2022 14:33:19 +0200 Subject: [PATCH] mixer/Control: use Mixer::IsGlobal() --- src/mixer/MixerControl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mixer/MixerControl.cxx b/src/mixer/MixerControl.cxx index 51ea759c1..2cc46e501 100644 --- a/src/mixer/MixerControl.cxx +++ b/src/mixer/MixerControl.cxx @@ -92,7 +92,7 @@ mixer_close(Mixer *mixer) void mixer_auto_close(Mixer *mixer) { - if (!mixer->plugin.global) + if (!mixer->IsGlobal()) mixer_close(mixer); } @@ -103,7 +103,7 @@ mixer_get_volume(Mixer *mixer) assert(mixer != nullptr); - if (mixer->plugin.global && !mixer->failure) + if (mixer->IsGlobal() && !mixer->failure) mixer_open(mixer); const std::scoped_lock protect(mixer->mutex); @@ -128,7 +128,7 @@ mixer_set_volume(Mixer *mixer, unsigned volume) assert(mixer != nullptr); assert(volume <= 100); - if (mixer->plugin.global && !mixer->failure) + if (mixer->IsGlobal() && !mixer->failure) mixer_open(mixer); const std::scoped_lock protect(mixer->mutex);