mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: fix typo checking if target codec is available
A2DP switch-codec command implementation must check if target codec is good, not the one we want to switch from. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/518>
This commit is contained in:
		
							parent
							
								
									458c763989
								
							
						
					
					
						commit
						24c2a527f0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2460,7 +2460,7 @@ static int bluez5_device_message_handler(const char *object_path, const char *me
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        is_a2dp_sink = u->profile == PA_BLUETOOTH_PROFILE_A2DP_SINK;
 | 
					        is_a2dp_sink = u->profile == PA_BLUETOOTH_PROFILE_A2DP_SINK;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!u->a2dp_codec->can_be_supported(is_a2dp_sink)) {
 | 
					        if (!codec->can_be_supported(is_a2dp_sink)) {
 | 
				
			||||||
            pa_log_info("Codec not found on system");
 | 
					            pa_log_info("Codec not found on system");
 | 
				
			||||||
            return -PA_ERR_NOTSUPPORTED;
 | 
					            return -PA_ERR_NOTSUPPORTED;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue