mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -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
de778e6235
commit
ab70dae0a8
3 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue