Commit 1e07d154 authored by Max Kellermann's avatar Max Kellermann

output/Control: add missing nullptr check to LockRelease()

parent cc7f6682
...@@ -400,6 +400,9 @@ AudioOutputControl::LockAllowPlay() noexcept ...@@ -400,6 +400,9 @@ AudioOutputControl::LockAllowPlay() noexcept
void void
AudioOutputControl::LockRelease() noexcept AudioOutputControl::LockRelease() noexcept
{ {
if (!output)
return;
if (output->mixer != nullptr && if (output->mixer != nullptr &&
(!always_on || !output->SupportsPause())) (!always_on || !output->SupportsPause()))
/* the device has no pause mode: close the mixer, /* the device has no pause mode: close the mixer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment