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,6 +53,7 @@ public: ...@@ -53,6 +53,7 @@ public:
void Set(const AudioFormat &_out_audio_format); void Set(const AudioFormat &_out_audio_format);
void Reset() override { void Reset() override {
if (IsActive())
state.Reset(); state.Reset();
} }
......
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