acp: update properties correctly

After modifying the properties, update the exported dictionary again
because the memory might have changed.

Fixes #304
This commit is contained in:
Wim Taymans 2020-09-22 12:40:21 +02:00
parent a4e079e1cb
commit 66cc13cc56

View file

@ -565,6 +565,7 @@ static int hdmi_eld_changed(snd_mixer_elem_t *melem, unsigned int mask)
changed |= (old_monitor_name == NULL) || (strcmp(old_monitor_name, eld.monitor_name) != 0);
pa_proplist_sets(p->proplist, PA_PROP_DEVICE_PRODUCT_NAME, eld.monitor_name);
}
pa_proplist_as_dict(p->proplist, &p->port.props);
if (changed && mask != 0 && impl->events && impl->events->props_changed)
impl->events->props_changed(impl);