summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filter/plugins/ConvertFilterPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filter/plugins/ConvertFilterPlugin.cxx b/src/filter/plugins/ConvertFilterPlugin.cxx
index bcc70fcd5..cec95222b 100644
--- a/src/filter/plugins/ConvertFilterPlugin.cxx
+++ b/src/filter/plugins/ConvertFilterPlugin.cxx
@@ -53,7 +53,8 @@ public:
void Set(const AudioFormat &_out_audio_format);
void Reset() override {
- state.Reset();
+ if (IsActive())
+ state.Reset();
}
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;