Skip to content

Commit

Permalink
filter/two: check empty() instead of data()==nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Nov 5, 2024
1 parent bcab29d commit 7774c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter/plugins/TwoFilters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7774c33

Please sign in to comment.