Skip to content

Commit

Permalink
mixer/Control: use Mixer::IsGlobal()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Aug 18, 2022
1 parent 5c47434 commit 2b8f117
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixer/MixerControl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mixer_close(Mixer *mixer)
void
mixer_auto_close(Mixer *mixer)
{
if (!mixer->plugin.global)
if (!mixer->IsGlobal())
mixer_close(mixer);
}

Expand All @@ -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<Mutex> protect(mixer->mutex);
Expand All @@ -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<Mutex> protect(mixer->mutex);
Expand Down

0 comments on commit 2b8f117

Please sign in to comment.