mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: allow monitors when selecting source by index
Fixes #3476
This commit is contained in:
parent
41dcac0ecd
commit
89fab13c77
1 changed files with 5 additions and 1 deletions
|
|
@ -2505,8 +2505,12 @@ static struct pw_manager_object *find_device(struct client *client,
|
|||
allow_monitor = true;
|
||||
}
|
||||
}
|
||||
} else if (index == SPA_ID_INVALID)
|
||||
} else if (index != SPA_ID_INVALID) {
|
||||
if (!sink)
|
||||
allow_monitor = true;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
spa_zero(sel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue