mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	small optimization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@789 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									9b52ac4b47
								
							
						
					
					
						commit
						286310a563
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -784,18 +784,15 @@ static void set_dispatch_callbacks(pa_operation *o) {
 | 
			
		|||
        done = 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!done)
 | 
			
		||||
        pa_operation_ref(o);
 | 
			
		||||
    else {
 | 
			
		||||
    if (done) {
 | 
			
		||||
        if (o->callback) {
 | 
			
		||||
            pa_context_notify_cb_t cb = (pa_context_notify_cb_t) o->callback;
 | 
			
		||||
            cb(o->context, o->userdata);
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        pa_operation_done(o);
 | 
			
		||||
    }   
 | 
			
		||||
 | 
			
		||||
        pa_operation_unref(o);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pa_operation* pa_context_drain(pa_context *c, pa_context_notify_cb_t cb, void *userdata) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue