diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-01-08 21:36:53 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-01-08 21:36:53 +0000 |
commit | fb4cba436c691ebadb24068977643674fb8c143e (patch) | |
tree | a630b36d4e575eeb1e1d6212a8224e957c981ff5 /polyp/module-match.c | |
parent | 1e78a1dd02e5b2f9c1b439fdc3c51753adbcb36c (diff) |
* add new module for LIRC volume control
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@333 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module-match.c')
-rw-r--r-- | polyp/module-match.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/polyp/module-match.c b/polyp/module-match.c index 9d969b31..3599a830 100644 --- a/polyp/module-match.c +++ b/polyp/module-match.c @@ -179,12 +179,10 @@ static void callback(struct pa_core *c, enum pa_subscription_event_type t, uint3 int pa__init(struct pa_core *c, struct pa_module*m) { struct pa_modargs *ma = NULL; - const char *table_file; struct userdata *u; assert(c && m); - if (!(ma = pa_modargs_new(m->argument, valid_modargs)) || - !(table_file = pa_modargs_get_value(ma, "table", NULL))) { + if (!(ma = pa_modargs_new(m->argument, valid_modargs))) { pa_log(__FILE__": Failed to parse module arguments\n"); goto fail; } @@ -194,7 +192,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) { u->subscription = NULL; m->userdata = u; - if (load_rules(u, table_file) < 0) + if (load_rules(u, pa_modargs_get_value(ma, "table", NULL)) < 0) goto fail; u->subscription = pa_subscription_new(c, PA_SUBSCRIPTION_MASK_SINK_INPUT, callback, u); |