Skip to content

Commit d8bb833

Browse files
committed
output/Source: convert runtime check to assert()
Flush() may only be called if the source is open.
1 parent 4d8a2ea commit d8bb833

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/output/Source.cxx

+3-3
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ AudioOutputSource::ConsumeData(size_t nbytes) noexcept
240240
std::span<const std::byte>
241241
AudioOutputSource::Flush()
242242
{
243-
return filter
244-
? filter->Flush()
245-
: std::span<const std::byte>{};
243+
assert(filter);
244+
245+
return filter->Flush();
246246
}

0 commit comments

Comments
 (0)