pulse-server: try to convert name to id when selecting

Obsoletes !327
This commit is contained in:
Wim Taymans 2020-11-27 15:04:06 +01:00
parent a417ffcd38
commit 350fa39aba

View file

@ -141,6 +141,8 @@ static struct pw_manager_object *select_object(struct pw_manager *m,
(str = pw_properties_get(o->props, s->key)) != NULL &&
strcmp(str, s->value) == 0)
return o;
if (s->value != NULL && (uint32_t)atoi(s->value) == o->id)
return o;
}
return s->best;
}