From b5b268f60674a1ded05fc98b64f9dbff1ca7ab0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Dec 2016 20:41:54 +0100 Subject: [PATCH] output/Thread: remove another redundant "open" check --- src/output/OutputThread.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index a5a3adfd4..eec86dbd9 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -297,14 +297,12 @@ AudioOutput::Reopen() out_audio_format */ out_audio_format = in_audio_format; out_audio_format.ApplyMask(config_audio_format); - } - if (open) + Open(); + } else /* the audio format has changed, and all filters have to be reconfigured */ ReopenFilter(); - else - Open(); } /**