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