From 5284cd11a9f73935aef096c145a75fa3ef90cde2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Jan 2017 12:35:06 +0100 Subject: [PATCH] filter/AutoConvert: remove obsolete NULL check --- src/filter/plugins/AutoConvertFilterPlugin.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/filter/plugins/AutoConvertFilterPlugin.cxx b/src/filter/plugins/AutoConvertFilterPlugin.cxx index fa0c375cf..f661c1093 100644 --- a/src/filter/plugins/AutoConvertFilterPlugin.cxx +++ b/src/filter/plugins/AutoConvertFilterPlugin.cxx @@ -92,11 +92,8 @@ PreparedAutoConvertFilter::Open(AudioFormat &in_audio_format) ConstBuffer AutoConvertFilter::FilterPCM(ConstBuffer src) { - if (convert != nullptr) { + if (convert != nullptr) src = convert->FilterPCM(src); - if (src.IsNull()) - return nullptr; - } return filter->FilterPCM(src); }