aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/FifoOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 12:25:08 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:49 +0200
commit81c3224076da6ad727debc6bab8a5422f7322451 (patch)
tree1da1912caa6c7ff863f7affeafae22e9e6004e8f /src/output/FifoOutputPlugin.cxx
parent7a1d466fb279659048e80e2853a7906c90d73235 (diff)
downloadmpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.gz
mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.xz
mpd-81c3224076da6ad727debc6bab8a5422f7322451.zip
OutputPlugin: pass config_param reference
Diffstat (limited to 'src/output/FifoOutputPlugin.cxx')
-rw-r--r--src/output/FifoOutputPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/FifoOutputPlugin.cxx b/src/output/FifoOutputPlugin.cxx
index a0d07c702..50062988c 100644
--- a/src/output/FifoOutputPlugin.cxx
+++ b/src/output/FifoOutputPlugin.cxx
@@ -53,7 +53,7 @@ struct FifoOutput {
g_free(path);
}
- bool Initialize(const config_param *param, GError **error_r) {
+ bool Initialize(const config_param &param, GError **error_r) {
return ao_base_init(&base, &fifo_output_plugin, param,
error_r);
}
@@ -186,10 +186,10 @@ fifo_open(FifoOutput *fd, GError **error_r)
}
static struct audio_output *
-fifo_output_init(const config_param *param, GError **error_r)
+fifo_output_init(const config_param &param, GError **error_r)
{
GError *error = nullptr;
- char *path = config_dup_block_path(param, "path", &error);
+ char *path = param.DupBlockPath("path", &error);
if (!path) {
if (error != nullptr)
g_propagate_error(error_r, error);