modules: add PRIORITY_SESSION

For driver nodes, priority.session is needed to be able to change the
default device.

Fixes #5125
This commit is contained in:
Wim Taymans 2026-02-16 10:36:29 +01:00
parent de778e6235
commit ab70dae0a8
3 changed files with 6 additions and 0 deletions

View file

@ -172,6 +172,8 @@ static int module_pipe_source_prepare(struct module * const module)
pw_properties_set(stream_props, PW_KEY_NODE_DRIVER, "true");
if ((str = pw_properties_get(stream_props, PW_KEY_PRIORITY_DRIVER)) == NULL)
pw_properties_set(stream_props, PW_KEY_PRIORITY_DRIVER, "50000");
if ((str = pw_properties_get(stream_props, PW_KEY_PRIORITY_SESSION)) == NULL)
pw_properties_set(stream_props, PW_KEY_PRIORITY_SESSION, "2000");
d->module = module;
d->stream_props = stream_props;