mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
parent
67f4acaf1d
commit
310ed89aad
2 changed files with 10 additions and 3 deletions
|
|
@ -180,7 +180,14 @@ struct global *pa_context_find_global_by_name(pa_context *c, uint32_t mask, cons
|
|||
{
|
||||
struct global *g;
|
||||
const char *str;
|
||||
uint32_t id = atoi(name);
|
||||
uint32_t id;
|
||||
|
||||
if (strcmp(name, "@DEFAULT_SINK@") == 0 || strcmp("@DEFAULT_MONITOR@", name) == 0)
|
||||
id = c->default_sink;
|
||||
else if (strcmp(name, "@DEFAULT_SOURCE@") == 0)
|
||||
id = c->default_sink;
|
||||
else
|
||||
id = atoi(name);
|
||||
|
||||
spa_list_for_each(g, &c->globals, link) {
|
||||
if ((g->mask & mask) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue