filter/Plugin: return std::unique_ptr<PreparedFilter>

This commit is contained in:
Max Kellermann
2017-12-27 09:17:15 +01:00
parent 0e3ff12dd3
commit e2621d5e44
24 changed files with 87 additions and 74 deletions

View File

@@ -146,8 +146,8 @@ AudioOutputControl::InternalOpen(const AudioFormat in_audio_format,
try {
try {
f = source.Open(in_audio_format, pipe,
output->prepared_replay_gain_filter,
output->prepared_other_replay_gain_filter,
output->prepared_replay_gain_filter.get(),
output->prepared_other_replay_gain_filter.get(),
*output->prepared_filter);
} catch (...) {
std::throw_with_nested(FormatRuntimeError("Failed to open filter for %s",