mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Set profile even if transport not acquired
If the acquisition of the transport fails, the profile should still be set. In this case the audio is not actually streaming, so the sink and source will be created but left suspended. If the transport needs to be acquired later, for example because the user wants to route the audio the remote device, the suspend flag should have to be changed.
This commit is contained in:
		
							parent
							
								
									dcc11dcbe9
								
							
						
					
					
						commit
						884d1d46ca
					
				
					 2 changed files with 56 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -1014,7 +1014,6 @@ int pa_bluetooth_transport_acquire(const pa_bluetooth_transport *t, const char *
 | 
			
		|||
    r = dbus_connection_send_with_reply_and_block(pa_dbus_connection_get(t->y->connection), m, -1, &err);
 | 
			
		||||
 | 
			
		||||
    if (dbus_error_is_set(&err) || !r) {
 | 
			
		||||
        pa_log("Failed to acquire transport fd: %s", err.message);
 | 
			
		||||
        dbus_error_free(&err);
 | 
			
		||||
        return -1;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue