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:
parent
7ff5cf8372
commit
9ce6828d72
|
@ -57,7 +57,9 @@ public:
|
||||||
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;
|
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;
|
||||||
|
|
||||||
ConstBuffer<void> Flush() override {
|
ConstBuffer<void> Flush() override {
|
||||||
return state.Flush();
|
return IsActive()
|
||||||
|
? state.Flush()
|
||||||
|
: nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue