output/Thread: clear Filter pointers in CloseFilter()

This allows calling CloseFilter() multiple times.
This commit is contained in:
Max Kellermann 2016-09-04 15:09:05 +02:00
parent 08166cf330
commit 9007dd9ab7

View File

@ -132,8 +132,13 @@ AudioOutput::CloseFilter()
software_mixer_set_filter(*mixer, nullptr);
delete replay_gain_filter_instance;
replay_gain_filter_instance = nullptr;
delete other_replay_gain_filter_instance;
other_replay_gain_filter_instance = nullptr;
delete filter_instance;
filter_instance = nullptr;
}
inline void