diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-18 11:03:19 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-18 11:03:19 +0200 |
commit | 9ff2606bb867c98cd1681433ac5e4d21b9ae541a (patch) | |
tree | 60fdf3d17ffbaf51fde7900edf00430d3ec26b72 /src/output | |
parent | fd80683ade480d6417d66d0fc882b598738002f8 (diff) |
config/Data: use std::forward_list to manage params and blocks
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/MultipleOutputs.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index f84441fde..af21d2e33 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -91,13 +91,12 @@ MultipleOutputs::Configure(EventLoop &event_loop, const ReplayGainConfig &replay_gain_config, AudioOutputClient &client) { - for (const auto *param = config.GetBlock(ConfigBlockOption::AUDIO_OUTPUT); - param != nullptr; param = param->next) { - param->SetUsed(); + for (const auto &block : config.GetBlockList(ConfigBlockOption::AUDIO_OUTPUT)) { + block.SetUsed(); auto *output = LoadOutputControl(event_loop, replay_gain_config, mixer_listener, - client, *param); + client, block); if (FindByName(output->GetName()) != nullptr) throw FormatRuntimeError("output devices with identical " "names: %s", output->GetName()); |