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

This commit is contained in:
Max Kellermann 2020-01-20 17:34:38 +01:00
parent cc7f66822e
commit 1e07d15428

View File

@ -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,