1
Fork 0

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.
This commit is contained in:
Wim Taymans 2024-01-04 10:43:03 +01:00
parent 0fd0582514
commit 8f66df2f78
1 changed files with 5 additions and 1 deletions

View File

@ -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;