pulse-server: support moving capture streams to monitors

Also resolve the monitor ids to the sink with the monitor ports.
This commit is contained in:
Wim Taymans 2021-03-17 17:02:28 +01:00
parent 24d795e9a4
commit bc47378abc

View file

@ -2737,6 +2737,12 @@ static struct pw_manager_object *find_device(struct client *client,
sink = true;
}
}
if (id != SPA_ID_INVALID && !sink) {
if (id & MONITOR_FLAG) {
sink = true;
id &= ~MONITOR_FLAG;
}
}
spa_zero(sel);
sel.id = id;