filter/ReplayGain: remove FilterPlugin instance, add explicit constructor

This commit is contained in:
Max Kellermann
2016-12-03 12:34:23 +01:00
parent b8aa9348b9
commit 3b867462a3
5 changed files with 7 additions and 15 deletions

View File

@@ -216,14 +216,12 @@ audio_output_setup(EventLoop &event_loop, AudioOutput &ao,
block.GetBlockValue("replay_gain_handler", "software");
if (strcmp(replay_gain_handler, "none") != 0) {
ao.prepared_replay_gain_filter = filter_new(&replay_gain_filter_plugin,
block);
ao.prepared_replay_gain_filter = NewReplayGainFilter();
assert(ao.prepared_replay_gain_filter != nullptr);
ao.replay_gain_serial = 0;
ao.prepared_other_replay_gain_filter = filter_new(&replay_gain_filter_plugin,
block);
ao.prepared_other_replay_gain_filter = NewReplayGainFilter();
assert(ao.prepared_other_replay_gain_filter != nullptr);
ao.other_replay_gain_serial = 0;