output/Thread: convert redundant runtime check to assertion

This commit is contained in:
Max Kellermann 2016-12-13 20:29:16 +01:00
parent 6e643fe58b
commit ce6b8c94a2

View File

@ -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