aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-19 23:57:55 +0100
committerMax Kellermann <max@duempel.org>2014-02-20 00:04:23 +0100
commit008723c62fe9686812758dfffb06d59f998f6204 (patch)
tree6bb222d69c3e13fc29a6b1ac449b7815944036db /src/output
parent9e0ce23a03096a9a2e3ac2936ca64b8ea1fdd326 (diff)
downloadmpd-008723c62fe9686812758dfffb06d59f998f6204.tar.gz
mpd-008723c62fe9686812758dfffb06d59f998f6204.tar.xz
mpd-008723c62fe9686812758dfffb06d59f998f6204.zip
ConfigGlobal: eliminate function config_get_next_param()
Diffstat (limited to 'src/output')
-rw-r--r--src/output/MultipleOutputs.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx
index 10e3e3bd5..2791e7045 100644
--- a/src/output/MultipleOutputs.cxx
+++ b/src/output/MultipleOutputs.cxx
@@ -73,9 +73,8 @@ LoadOutput(EventLoop &event_loop, MixerListener &mixer_listener,
void
MultipleOutputs::Configure(EventLoop &event_loop, PlayerControl &pc)
{
- const config_param *param = nullptr;
- while ((param = config_get_next_param(CONF_AUDIO_OUTPUT,
- param)) != nullptr) {
+ for (const config_param *param = config_get_param(CONF_AUDIO_OUTPUT);
+ param != nullptr; param = param->next) {
auto output = LoadOutput(event_loop, mixer_listener,
pc, *param);
if (FindByName(output->name) != nullptr)