diff options
author | Max Kellermann <max@duempel.org> | 2013-08-04 12:25:08 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-04 14:07:49 +0200 |
commit | 81c3224076da6ad727debc6bab8a5422f7322451 (patch) | |
tree | 1da1912caa6c7ff863f7affeafae22e9e6004e8f /src/output/PulseOutputPlugin.cxx | |
parent | 7a1d466fb279659048e80e2853a7906c90d73235 (diff) | |
download | mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.gz mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.xz mpd-81c3224076da6ad727debc6bab8a5422f7322451.zip |
OutputPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r-- | src/output/PulseOutputPlugin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/output/PulseOutputPlugin.cxx b/src/output/PulseOutputPlugin.cxx index 65526c8fb..f59c8d76e 100644 --- a/src/output/PulseOutputPlugin.cxx +++ b/src/output/PulseOutputPlugin.cxx @@ -344,7 +344,7 @@ pulse_output_setup_context(PulseOutput *po, GError **error_r) } static struct audio_output * -pulse_output_init(const struct config_param *param, GError **error_r) +pulse_output_init(const config_param ¶m, GError **error_r) { PulseOutput *po; @@ -356,9 +356,9 @@ pulse_output_init(const struct config_param *param, GError **error_r) return nullptr; } - po->name = config_get_block_string(param, "name", "mpd_pulse"); - po->server = config_get_block_string(param, "server", nullptr); - po->sink = config_get_block_string(param, "sink", nullptr); + po->name = param.GetBlockValue("name", "mpd_pulse"); + po->server = param.GetBlockValue("server"); + po->sink = param.GetBlockValue("sink"); po->mixer = nullptr; po->mainloop = nullptr; @@ -923,10 +923,10 @@ pulse_output_pause(struct audio_output *ao) static bool pulse_output_test_default_device(void) { - PulseOutput *po; bool success; - po = (PulseOutput *)pulse_output_init(nullptr, nullptr); + const config_param empty; + PulseOutput *po = (PulseOutput *)pulse_output_init(empty, nullptr); if (po == nullptr) return false; |