mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: backend-native: don't send +BCS if no codec negotiation
Fix issue with sending +BCS for CVSD even though codec negotation is not available for the RFCOMM.
This commit is contained in:
		
							parent
							
								
									a19ab4a20a
								
							
						
					
					
						commit
						b44fdf5ebb
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -1374,6 +1374,9 @@ static int backend_native_ensure_codec(void *data, struct spa_bt_device *device,
 | 
				
			||||||
	if (rfcomm == NULL)
 | 
						if (rfcomm == NULL)
 | 
				
			||||||
		return -ENOTSUP;
 | 
							return -ENOTSUP;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!rfcomm->codec_negotiation_supported)
 | 
				
			||||||
 | 
							return -ENOTSUP;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (rfcomm->codec == codec) {
 | 
						if (rfcomm->codec == codec) {
 | 
				
			||||||
		spa_bt_device_emit_codec_switched(device, 0);
 | 
							spa_bt_device_emit_codec_switched(device, 0);
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue