Commit ce6b8c94 authored by Max Kellermann's avatar Max Kellermann

output/Thread: convert redundant runtime check to assertion

parent 6e643fe5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment