mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Assert transport has a matching profile
It is a bug if a transport has no matching profile.
This commit is contained in:
		
							parent
							
								
									1f0de01bfc
								
							
						
					
					
						commit
						bdef2dbd0a
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1890,10 +1890,8 @@ static void handle_transport_state_change(struct userdata *u, struct pa_bluetoot
 | 
			
		|||
 | 
			
		||||
    pa_assert(u);
 | 
			
		||||
    pa_assert(t);
 | 
			
		||||
    pa_assert_se(cp = pa_hashmap_get(u->card->profiles, pa_bluetooth_profile_to_string(t->profile)));
 | 
			
		||||
 | 
			
		||||
    /* Update profile availability */
 | 
			
		||||
    if (!(cp = pa_hashmap_get(u->card->profiles, pa_bluetooth_profile_to_string(t->profile))))
 | 
			
		||||
        return;
 | 
			
		||||
    pa_card_profile_set_available(cp, transport_state_to_availability(t->state));
 | 
			
		||||
 | 
			
		||||
    /* Update port availability */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue