diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-13 20:29:16 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-13 20:29:16 +0100 |
commit | ce6b8c94a2dd847bb5bc525c96ef236983b479b8 (patch) | |
tree | 315eaa3d781e02e79559d3c166781dba782ade13 | |
parent | 6e643fe58b5329e109c781d0b5bcddf7ff0a8780 (diff) |
output/Thread: convert redundant runtime check to assertion
-rw-r--r-- | src/output/OutputThread.cxx | 5 |
1 files 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 |