mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	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:
		
							parent
							
								
									0fd0582514
								
							
						
					
					
						commit
						8f66df2f78
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -578,6 +578,8 @@ static void manager_added(void *d, struct pw_manager_object *o)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct service *s;
 | 
						struct service *s;
 | 
				
			||||||
	struct pw_node_info *info;
 | 
						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))
 | 
						if (!pw_manager_object_is_sink(o) && !pw_manager_object_is_source(o))
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
| 
						 | 
					@ -589,7 +591,9 @@ static void manager_added(void *d, struct pw_manager_object *o)
 | 
				
			||||||
	if (pw_manager_object_is_network(o))
 | 
						if (pw_manager_object_is_network(o))
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	s = create_service(d, o);
 | 
						update_object_info(data->manager, o, &impl->defs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						s = create_service(data, o);
 | 
				
			||||||
	if (s == NULL)
 | 
						if (s == NULL)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue