Commit ce6b8c94 authored by Max Kellermann's avatar Max Kellermann

output/Thread: convert redundant runtime check to assertion

parent 6e643fe5
...@@ -287,8 +287,9 @@ AudioOutput::ReopenFilter() ...@@ -287,8 +287,9 @@ AudioOutput::ReopenFilter()
void void
AudioOutput::Reopen() AudioOutput::Reopen()
{ {
assert(open);
if (!config_audio_format.IsFullyDefined()) { if (!config_audio_format.IsFullyDefined()) {
if (open)
Close(true); Close(true);
/* no audio format is configured: copy in->out, let /* no audio format is configured: copy in->out, let
......
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