From ce6b8c94a2dd847bb5bc525c96ef236983b479b8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Dec 2016 20:29:16 +0100 Subject: [PATCH] output/Thread: convert redundant runtime check to assertion --- src/output/OutputThread.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index 5566c8f17..a5a3adfd4 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -287,9 +287,10 @@ AudioOutput::ReopenFilter() void AudioOutput::Reopen() { + assert(open); + if (!config_audio_format.IsFullyDefined()) { - if (open) - Close(true); + Close(true); /* no audio format is configured: copy in->out, let the output's open() method determine the effective