diff --git a/src/filter/plugins/ConvertFilterPlugin.cxx b/src/filter/plugins/ConvertFilterPlugin.cxx index 91d556746..77c82eea9 100644 --- a/src/filter/plugins/ConvertFilterPlugin.cxx +++ b/src/filter/plugins/ConvertFilterPlugin.cxx @@ -57,7 +57,9 @@ public: ConstBuffer FilterPCM(ConstBuffer src) override; ConstBuffer Flush() override { - return state.Flush(); + return IsActive() + ? state.Flush() + : nullptr; } private: