From 5ad53a75547fd7ee596e6276c640cfc3ec178d77 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 22 Oct 2021 19:39:52 +0200 Subject: [PATCH] output/Thread: remove duplicate code by calling InternalCloseOutput() --- src/output/Thread.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/output/Thread.cxx b/src/output/Thread.cxx index 6fdd91ab6..88e164846 100644 --- a/src/output/Thread.cxx +++ b/src/output/Thread.cxx @@ -74,13 +74,7 @@ AudioOutputControl::InternalOpen2(const AudioFormat in_audio_format) try { output->ConfigureConvertFilter(); } catch (...) { - open = false; - - { - const ScopeUnlock unlock(mutex); - output->CloseOutput(false); - } - + InternalCloseOutput(false); throw; } }