Revert "default-nodes: increase priority if node has available routes"
This reverts commit ad80faaa8d
.
The same issue is fixed by the intermediate commit by Wim. Let's revert
this to keep the logic in-sync with policy-node.lua and media-session.
This commit is contained in:
@@ -212,11 +212,11 @@ find_best_media_class_node (WpDefaultNodes * self, const gchar *media_class,
|
|||||||
WP_PIPEWIRE_OBJECT (node), PW_KEY_PRIORITY_SESSION);
|
WP_PIPEWIRE_OBJECT (node), PW_KEY_PRIORITY_SESSION);
|
||||||
gint prio = prio_str ? atoi (prio_str) : -1;
|
gint prio = prio_str ? atoi (prio_str) : -1;
|
||||||
|
|
||||||
if (node_has_available_routes (self, node))
|
if (!node_has_available_routes (self, node))
|
||||||
prio += 10000;
|
continue;
|
||||||
|
|
||||||
if (name && node_name && g_strcmp0 (name, node_name) == 0)
|
if (name && node_name && g_strcmp0 (name, node_name) == 0)
|
||||||
prio += 20000;
|
prio += 10000;
|
||||||
|
|
||||||
if (prio > highest_prio || res == NULL) {
|
if (prio > highest_prio || res == NULL) {
|
||||||
highest_prio = prio;
|
highest_prio = prio;
|
||||||
|
Reference in New Issue
Block a user