mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-27 07:58:16 -04:00
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:
parent
da2dbb9816
commit
3dfbc6b61c
3 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue