mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: the device changed when EnumRoute changes
We use EnumRoute of the card to fill in the ports of the device so when EnumRoute changes, the associated devices also needs a change event.
This commit is contained in:
		
							parent
							
								
									6ee48f0562
								
							
						
					
					
						commit
						c298d7faef
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -373,7 +373,8 @@ static void device_event_param(void *data, int seq,
 | 
			
		|||
	if (p == NULL)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (id == SPA_PARAM_Route && !has_param(&o->this.param_list, p)) {
 | 
			
		||||
	if ((id == SPA_PARAM_Route || id == SPA_PARAM_EnumRoute) &&
 | 
			
		||||
	    !has_param(&o->this.param_list, p)) {
 | 
			
		||||
		uint32_t idx, device;
 | 
			
		||||
		if (spa_pod_parse_object(param,
 | 
			
		||||
				SPA_TYPE_OBJECT_ParamRoute, NULL,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue