output/Control: add missing nullptr check to LockRelease()
This commit is contained in:
parent
cc7f66822e
commit
1e07d15428
@ -400,6 +400,9 @@ AudioOutputControl::LockAllowPlay() noexcept
|
||||
void
|
||||
AudioOutputControl::LockRelease() noexcept
|
||||
{
|
||||
if (!output)
|
||||
return;
|
||||
|
||||
if (output->mixer != nullptr &&
|
||||
(!always_on || !output->SupportsPause()))
|
||||
/* the device has no pause mode: close the mixer,
|
||||
|
Loading…
Reference in New Issue
Block a user