From 1e07d1542856d63f026448eb37e1276576d8381b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Jan 2020 17:34:38 +0100 Subject: [PATCH] output/Control: add missing nullptr check to LockRelease() --- src/output/Control.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/output/Control.cxx b/src/output/Control.cxx index bf29fb28f..b41acbb7c 100644 --- a/src/output/Control.cxx +++ b/src/output/Control.cxx @@ -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,