output/Source: reset all filters in Cancel()

This commit is contained in:
Max Kellermann 2017-01-11 15:38:55 +01:00
parent 79726940dc
commit 533cb99c33

View File

@ -75,6 +75,15 @@ AudioOutputSource::Cancel()
{
current_chunk = nullptr;
pipe.Cancel();
if (replay_gain_filter_instance != nullptr)
replay_gain_filter_instance->Reset();
if (other_replay_gain_filter_instance != nullptr)
other_replay_gain_filter_instance->Reset();
if (filter_instance != nullptr)
filter_instance->Reset();
}
void