module-match: Allow loading module more than once
authorSanchayan Maity <sanchayan@asymptotic.io>
Thu, 23 Jul 2020 15:03:36 +0000 (20:33 +0530)
committerSanchayan Maity <sanchayan@asymptotic.io>
Mon, 7 Dec 2020 16:08:05 +0000 (21:38 +0530)
As long as modules use different keys, multiple loading of this module
should be safe. Even in case of same keys, either the pa_proplist_update
should correctly update the property list based on the mode or for the
volume writable case, the last rule should win.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/942
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/332>

src/modules/module-match.c

index 76f7125..9b5e76c 100644 (file)
@@ -47,7 +47,7 @@
 PA_MODULE_AUTHOR("Lennart Poettering");
 PA_MODULE_DESCRIPTION("Playback stream expression matching module");
 PA_MODULE_VERSION(PACKAGE_VERSION);
-PA_MODULE_LOAD_ONCE(true);
+PA_MODULE_LOAD_ONCE(false);
 PA_MODULE_USAGE("table=<filename> "
                 "key=<property_key>");