mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: connected can be -1, check > 0
This commit is contained in:
		
							parent
							
								
									13f1c4413b
								
							
						
					
					
						commit
						62a4e36f5d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -93,7 +93,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            /* Oh, awesome, a new device has shown up and been connected! */
 | 
					            /* Oh, awesome, a new device has shown up and been connected! */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            args = pa_sprintf_malloc("address=\"%s\" path=\"%s\" profile=\"%s\"", d->address, d->path, d->headset_connected ? "hsp" : "a2dp");
 | 
					            args = pa_sprintf_malloc("address=\"%s\" path=\"%s\" profile=\"%s\"", d->address, d->path, d->headset_connected > 0 ? "hsp" : "a2dp");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef NOKIA
 | 
					#ifdef NOKIA
 | 
				
			||||||
            if (pa_modargs_get_value(u->modargs, "sco_sink", NULL) &&
 | 
					            if (pa_modargs_get_value(u->modargs, "sco_sink", NULL) &&
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue