mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Check adapter address to set device_info_valid
If the adapter object has no address information the device information should be marked as invalid.
This commit is contained in:
		
							parent
							
								
									d8e2b3a78c
								
							
						
					
					
						commit
						d8fb09b567
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -820,8 +820,8 @@ static void parse_interfaces_and_properties(pa_bluetooth_discovery *y, DBusMessa
 | 
			
		|||
 | 
			
		||||
        if (!d->adapter && d->adapter_path) {
 | 
			
		||||
            d->adapter = pa_hashmap_get(d->discovery->adapters, d->adapter_path);
 | 
			
		||||
            if (!d->adapter) {
 | 
			
		||||
                pa_log_error("Device %s is child of nonexistent adapter %s", d->path, d->adapter_path);
 | 
			
		||||
            if (!d->adapter || !d->adapter->address) {
 | 
			
		||||
                pa_log_error("Device %s is child of nonexistent or corrupted adapter %s", d->path, d->adapter_path);
 | 
			
		||||
                set_device_info_valid(d, -1);
 | 
			
		||||
            } else
 | 
			
		||||
                set_device_info_valid(d, 1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue