filter/Filter: Flush() returns empty span, not nullptr

This commit is contained in:
Max Kellermann
2024-11-05 13:16:28 +01:00
parent d6195025fb
commit bcab29d53a
3 changed files with 3 additions and 3 deletions

View File

@@ -389,7 +389,7 @@ AudioOutputControl::InternalDrain() noexcept
while (true) {
auto buffer = source.Flush();
if (buffer.data() == nullptr)
if (buffer.empty())
break;
PlayFull(*output, buffer);