aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/OssMixerPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 13:43:36 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:50 +0200
commita0beb5fa26e2b66d01a3b21534b848930929a333 (patch)
treeeb6e661a05b5d9994f514a6fbcc50a72d94df722 /src/mixer/OssMixerPlugin.cxx
parentf54bcc1f16f815fb507ac8a8ffd7913f686969d2 (diff)
downloadmpd-a0beb5fa26e2b66d01a3b21534b848930929a333.tar.gz
mpd-a0beb5fa26e2b66d01a3b21534b848930929a333.tar.xz
mpd-a0beb5fa26e2b66d01a3b21534b848930929a333.zip
MixerPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r--src/mixer/OssMixerPlugin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mixer/OssMixerPlugin.cxx b/src/mixer/OssMixerPlugin.cxx
index 5c2bdec8d..bbb5b6c88 100644
--- a/src/mixer/OssMixerPlugin.cxx
+++ b/src/mixer/OssMixerPlugin.cxx
@@ -51,7 +51,7 @@ class OssMixer : public Mixer {
public:
OssMixer():Mixer(oss_mixer_plugin) {}
- bool Configure(const config_param *param, GError **error_r);
+ bool Configure(const config_param &param, GError **error_r);
bool Open(GError **error_r);
void Close();
@@ -84,11 +84,11 @@ oss_find_mixer(const char *name)
}
inline bool
-OssMixer::Configure(const config_param *param, GError **error_r)
+OssMixer::Configure(const config_param &param, GError **error_r)
{
- device = config_get_block_string(param, "mixer_device",
+ device = param.GetBlockValue("mixer_device",
VOLUME_MIXER_OSS_DEFAULT);
- control = config_get_block_string(param, "mixer_control", NULL);
+ control = param.GetBlockValue("mixer_control");
if (control != NULL) {
volume_control = oss_find_mixer(control);
@@ -104,7 +104,7 @@ OssMixer::Configure(const config_param *param, GError **error_r)
}
static Mixer *
-oss_mixer_init(G_GNUC_UNUSED void *ao, const struct config_param *param,
+oss_mixer_init(G_GNUC_UNUSED void *ao, const config_param &param,
GError **error_r)
{
OssMixer *om = new OssMixer();