module-match: Allow loading module more than once

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>
This commit is contained in:
Sanchayan Maity 2020-07-23 20:33:36 +05:30
parent 71aa4720a4
commit ea69288b76

View file

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