mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: allow objects with priority 0 to be default
Also use the object with priority 0 as a best option when there is not yet anything else.
This commit is contained in:
parent
a48a4fc1bd
commit
8befe9e238
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ static void select_best(struct selector *s, struct pw_manager_object *o)
|
|||
if (o->props &&
|
||||
(str = pw_properties_get(o->props, PW_KEY_PRIORITY_DRIVER)) != NULL) {
|
||||
prio = pw_properties_parse_int(str);
|
||||
if (prio > s->score) {
|
||||
if (s->best == NULL || prio > s->score) {
|
||||
s->best = o;
|
||||
s->score = prio;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue