mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Fix early return styling and add missing return value
Thanks to Tanu Kaskinen for pointing out the missing return.
This commit is contained in:
		
							parent
							
								
									ff79b3147c
								
							
						
					
					
						commit
						ce8b03bb26
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1936,10 +1936,11 @@ static int sco_over_pcm_state_update(struct userdata *u, pa_bool_t changed) {
 | 
			
		|||
 | 
			
		||||
        if (u->transport)
 | 
			
		||||
            return bt_transport_acquire(u, TRUE);
 | 
			
		||||
        else
 | 
			
		||||
            return start_stream_fd(u);
 | 
			
		||||
 | 
			
		||||
    } else if (changed) {
 | 
			
		||||
        return start_stream_fd(u);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (changed) {
 | 
			
		||||
        if (u->service_fd < 0 && u->stream_fd < 0)
 | 
			
		||||
            return 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1954,9 +1955,9 @@ static int sco_over_pcm_state_update(struct userdata *u, pa_bool_t changed) {
 | 
			
		|||
            pa_close(u->service_fd);
 | 
			
		||||
            u->service_fd = -1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static pa_hook_result_t sink_state_changed_cb(pa_core *c, pa_sink *s, struct userdata *u) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue