mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-20 02:40:38 +02:00
default-nodes: increase priority if node has available routes
Fixes #163
This commit is contained in:
parent
afb177b5e0
commit
ad80faaa8d
1 changed files with 3 additions and 3 deletions
|
|
@ -206,11 +206,11 @@ find_best_media_class_node (WpDefaultNodes * self, const gchar *media_class,
|
|||
WP_PIPEWIRE_OBJECT (node), PW_KEY_PRIORITY_SESSION);
|
||||
gint prio = prio_str ? atoi (prio_str) : -1;
|
||||
|
||||
if (!node_has_available_routes (self, node))
|
||||
continue;
|
||||
if (node_has_available_routes (self, node))
|
||||
prio += 10000;
|
||||
|
||||
if (name && node_name && g_strcmp0 (name, node_name) == 0)
|
||||
prio += 10000;
|
||||
prio += 20000;
|
||||
|
||||
if (prio > highest_prio || res == NULL) {
|
||||
highest_prio = prio;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue