From 66cc13cc56e5ccb001d8131477179cc19d9b58c8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Sep 2020 12:40:21 +0200 Subject: [PATCH] acp: update properties correctly After modifying the properties, update the exported dictionary again because the memory might have changed. Fixes #304 --- spa/plugins/alsa/acp/acp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index 1684beb59..f7fdd4759 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -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);