mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	acp: update properties correctly
After modifying the properties, update the exported dictionary again because the memory might have changed. Fixes #304
This commit is contained in:
		
							parent
							
								
									a4e079e1cb
								
							
						
					
					
						commit
						66cc13cc56
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -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);
 | 
							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_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)
 | 
						if (changed && mask != 0 && impl->events && impl->events->props_changed)
 | 
				
			||||||
		impl->events->props_changed(impl);
 | 
							impl->events->props_changed(impl);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue