Commit e46fbd07 authored by Max Kellermann's avatar Max Kellermann

filter/convert: set the PcmConvert instance only if it was initialized

Fixes valgrind warning.
parent 56b74ad9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment