diff --git a/src/filter/plugins/TwoFilters.cxx b/src/filter/plugins/TwoFilters.cxx index b93eba416..2ffcae1ad 100644 --- a/src/filter/plugins/TwoFilters.cxx +++ b/src/filter/plugins/TwoFilters.cxx @@ -16,8 +16,7 @@ TwoFilters::FilterPCM(std::span src) std::span TwoFilters::Flush() { - auto result = first->Flush(); - if (result.data() != nullptr) + if (auto result = first->Flush(); result.data() != nullptr) /* Flush() output from the first Filter must be filtered by the second Filter */ return second->FilterPCM(result);