From 34658927a3821cfc411703962af08fd3c334c277 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Thu, 14 Apr 2011 13:00:58 +0200 Subject: [PATCH] equalizer: Use sink_master as the module argument rather than just master. This brings more uniformity to arguments to match module-echo-cancel (which needs both sink and source masters, hence the disambiguation). This will allow other modules to load filters in a more uniform way in the future without kludges to deal with variation in arguments. --- src/modules/module-equalizer-sink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-equalizer-sink.c b/src/modules/module-equalizer-sink.c index bb350c3..0bbb23a 100644 --- a/src/modules/module-equalizer-sink.c +++ b/src/modules/module-equalizer-sink.c @@ -79,7 +79,7 @@ PA_MODULE_LOAD_ONCE(FALSE); PA_MODULE_USAGE( _("sink_name= " "sink_properties= " - "master= " + "sink_master= " "format= " "rate= " "channels= " @@ -133,7 +133,7 @@ struct userdata { static const char* const valid_modargs[] = { "sink_name", "sink_properties", - "master", + "sink_master", "format", "rate", "channels", @@ -1088,7 +1088,7 @@ int pa__init(pa_module*m) { goto fail; } - if (!(master = pa_namereg_get(m->core, pa_modargs_get_value(ma, "master", NULL), PA_NAMEREG_SINK))) { + if (!(master = pa_namereg_get(m->core, pa_modargs_get_value(ma, "sink_master", NULL), PA_NAMEREG_SINK))) { pa_log("Master sink not found"); goto fail; } -- 2.7.4