output/Thread: convert redundant runtime check to assertion
This commit is contained in:
parent
6e643fe58b
commit
ce6b8c94a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user