mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
context: use first data-loop class when unset
When a node does not specify a data-loop class, use the class of the first data loop. This makes the nodes spread out over the first (default) data-loop class.
This commit is contained in:
parent
3e760ea7d7
commit
c8efa0fae2
|
@ -665,10 +665,8 @@ static struct pw_data_loop *acquire_data_loop(struct impl *impl, const char *nam
|
|||
const char *ln = l->impl->loop->name;
|
||||
int score = 0;
|
||||
|
||||
if (!name && !klass) {
|
||||
best_loop = l;
|
||||
break;
|
||||
}
|
||||
if (klass == NULL)
|
||||
klass = l->impl->class;
|
||||
|
||||
if (name && ln && fnmatch(name, ln, FNM_EXTMATCH) == 0)
|
||||
score += 2;
|
||||
|
|
Loading…
Reference in a new issue