Commit 9ce6828d authored by Max Kellermann's avatar Max Kellermann

filter/convert: call PcmConvert::Flush() only if initialized

Fixes another part of #208, the one which caused the bogus exception.
parent 7ff5cf83
......@@ -57,7 +57,9 @@ public:
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;
ConstBuffer<void> Flush() override {
return state.Flush();
return IsActive()
? state.Flush()
: nullptr;
}
private:
......
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