filter/convert: set the PcmConvert instance only if it was initialized
Fixes valgrind warning.
This commit is contained in:
parent
56b74ad990
commit
e46fbd0780
@ -53,7 +53,8 @@ public:
|
|||||||
void Set(const AudioFormat &_out_audio_format);
|
void Set(const AudioFormat &_out_audio_format);
|
||||||
|
|
||||||
void Reset() override {
|
void Reset() override {
|
||||||
state.Reset();
|
if (IsActive())
|
||||||
|
state.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;
|
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user