filter/two: check empty() instead of data()==nullptr

See bcab29d53a
This commit is contained in:
Max Kellermann 2024-11-05 22:37:27 +01:00
parent bcab29d53a
commit 7774c3369e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ TwoFilters::FilterPCM(std::span<const std::byte> src)
std::span<const std::byte>
TwoFilters::Flush()
{
if (auto result = first->Flush(); result.data() != nullptr)
if (auto result = first->Flush(); !result.empty())
/* Flush() output from the first Filter must be
filtered by the second Filter */
return second->FilterPCM(result);