mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05: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
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
const char *ln = l->impl->loop->name;
|
||||||
int score = 0;
|
int score = 0;
|
||||||
|
|
||||||
if (!name && !klass) {
|
if (klass == NULL)
|
||||||
best_loop = l;
|
klass = l->impl->class;
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (name && ln && fnmatch(name, ln, FNM_EXTMATCH) == 0)
|
if (name && ln && fnmatch(name, ln, FNM_EXTMATCH) == 0)
|
||||||
score += 2;
|
score += 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue