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 da2dbb9816
commit 3dfbc6b61c
3 changed files with 6 additions and 0 deletions

View file

@ -1316,9 +1316,11 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
pw_properties_set(props, PW_KEY_NODE_ALWAYS_PROCESS, "true");
pw_properties_set(impl->sink.props, PW_KEY_PRIORITY_DRIVER, "40000");
pw_properties_set(impl->sink.props, PW_KEY_PRIORITY_SESSION, "2000");
pw_properties_set(impl->sink.props, PW_KEY_NODE_NAME, "netjack2_driver_send");
pw_properties_set(impl->source.props, PW_KEY_PRIORITY_DRIVER, "40001");
pw_properties_set(impl->source.props, PW_KEY_PRIORITY_SESSION, "2001");
pw_properties_set(impl->source.props, PW_KEY_NODE_NAME, "netjack2_driver_receive");
if ((str = pw_properties_get(props, "sink.props")) != NULL)