pulse-server: allow monitors when selecting source by index

Fixes #3476
This commit is contained in:
Wim Taymans 2023-08-30 09:59:37 +02:00
parent 41dcac0ecd
commit 89fab13c77

View file

@ -2505,8 +2505,12 @@ static struct pw_manager_object *find_device(struct client *client,
allow_monitor = true; allow_monitor = true;
} }
} }
} else if (index == SPA_ID_INVALID) } else if (index != SPA_ID_INVALID) {
if (!sink)
allow_monitor = true;
} else {
return NULL; return NULL;
}
spa_zero(sel); spa_zero(sel);