From 917c6419b10a0385428e1c88219cab6d6d754614 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Jan 2024 10:43:03 +0100 Subject: [PATCH] pulse-server: call update_object_info in manager_added get_device_info() requires us to call update_object_info() in the added and updated events. Fixes a bug where the properties were invalid in the avahi txt record. --- .../module-protocol-pulse/modules/module-zeroconf-publish.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c b/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c index 21c41233d..414299467 100644 --- a/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c +++ b/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c @@ -578,6 +578,8 @@ static void manager_added(void *d, struct pw_manager_object *o) { struct service *s; struct pw_node_info *info; + struct module_zeroconf_publish_data *data = d; + struct impl *impl = data->module->impl; if (!pw_manager_object_is_sink(o) && !pw_manager_object_is_source(o)) return; @@ -589,7 +591,9 @@ static void manager_added(void *d, struct pw_manager_object *o) if (pw_manager_object_is_network(o)) return; - s = create_service(d, o); + update_object_info(data->manager, o, &impl->defs); + + s = create_service(data, o); if (s == NULL) return;