policy-node: always boost default node priority

Make sure the default node as the highest priority.
Fixes a problem with default nodes not being selected when their
priority happens to be too low (bluetooth devices)
This commit is contained in:
Wim Taymans 2020-09-17 12:35:33 +02:00
parent 688041b083
commit 8ee07c3c66

View file

@ -424,7 +424,7 @@ static int find_node(void *data, struct node *node)
is_default = impl->default_video_source == node->id;
}
if (is_default)
priority += 1000;
priority += 10000;
}
if ((find->exclusive && node->obj->info->state == PW_NODE_STATE_RUNNING) ||