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

Fixes another part of #208, the one which caused the bogus exception.
This commit is contained in:
Max Kellermann 2018-01-29 22:22:28 +01:00
parent 7ff5cf8372
commit 9ce6828d72
1 changed files with 3 additions and 1 deletions

View File

@ -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: