mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa-ucm: use the right profile name
Use the right profile name or else we could pass NULL to pa_hashmap_get() and crash.
This commit is contained in:
		
							parent
							
								
									f3f16fe6df
								
							
						
					
					
						commit
						4dc73f5167
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1315,7 +1315,7 @@ int pa_alsa_ucm_set_profile(pa_alsa_ucm_config *ucm, pa_card *card, const char *
 | 
			
		|||
    /* select volume controls on ports */
 | 
			
		||||
    PA_HASHMAP_FOREACH(port, card->ports, state) {
 | 
			
		||||
        data = PA_DEVICE_PORT_DATA(port);
 | 
			
		||||
        data->path = pa_hashmap_get(data->paths, new_profile);
 | 
			
		||||
        data->path = pa_hashmap_get(data->paths, profile);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return ret;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue