context: fix @DEFAULT_SOURCE@ wildcard

This commit is contained in:
Max Jöhnk 2020-10-22 10:23:35 +02:00 committed by Wim Taymans
parent 4450ddadcf
commit 406b99c4c5

View file

@ -187,7 +187,7 @@ struct global *pa_context_find_global_by_name(pa_context *c, uint32_t mask, cons
if (strcmp(name, "@DEFAULT_SINK@") == 0 || strcmp("@DEFAULT_MONITOR@", name) == 0) if (strcmp(name, "@DEFAULT_SINK@") == 0 || strcmp("@DEFAULT_MONITOR@", name) == 0)
id = c->default_sink; id = c->default_sink;
else if (strcmp(name, "@DEFAULT_SOURCE@") == 0) else if (strcmp(name, "@DEFAULT_SOURCE@") == 0)
id = c->default_sink; id = c->default_source;
else else
id = atoi(name); id = atoi(name);