From 7774c3369e1484dc5dec6d7d9572e0a57e9c5302 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Nov 2024 22:37:27 +0100 Subject: [PATCH] filter/two: check empty() instead of data()==nullptr See bcab29d53a8981993444c5d5fda642bc82ccd73f --- src/filter/plugins/TwoFilters.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter/plugins/TwoFilters.cxx b/src/filter/plugins/TwoFilters.cxx index ee67d9073..a7597c527 100644 --- a/src/filter/plugins/TwoFilters.cxx +++ b/src/filter/plugins/TwoFilters.cxx @@ -23,7 +23,7 @@ TwoFilters::FilterPCM(std::span src) std::span 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);