pulse-server: the device changed when EnumRoute changes

We use EnumRoute of the card to fill in the ports of the device so when
EnumRoute changes, the associated devices also needs a change event.
This commit is contained in:
Wim Taymans 2024-01-24 11:19:14 +01:00
parent 6ee48f0562
commit c298d7faef

View file

@ -373,7 +373,8 @@ static void device_event_param(void *data, int seq,
if (p == NULL)
return;
if (id == SPA_PARAM_Route && !has_param(&o->this.param_list, p)) {
if ((id == SPA_PARAM_Route || id == SPA_PARAM_EnumRoute) &&
!has_param(&o->this.param_list, p)) {
uint32_t idx, device;
if (spa_pod_parse_object(param,
SPA_TYPE_OBJECT_ParamRoute, NULL,