mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	change order of the ALSA event dispatch code to make sure that the code survives if the event dispatcher frees the ALSA client
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1193 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									59f1a67cb5
								
							
						
					
					
						commit
						b0b968df00
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -93,14 +93,14 @@ static void io_cb(pa_mainloop_api*a, pa_io_event* e, PA_GCC_UNUSED int fd, pa_io
 | 
			
		|||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    a->defer_enable(fdl->defer, 1);
 | 
			
		||||
 | 
			
		||||
    if (revents) {
 | 
			
		||||
        if (fdl->pcm)
 | 
			
		||||
            fdl->cb(fdl->userdata);
 | 
			
		||||
        else
 | 
			
		||||
            snd_mixer_handle_events(fdl->mixer);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    a->defer_enable(fdl->defer, 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void defer_cb(pa_mainloop_api*a, PA_GCC_UNUSED pa_defer_event* e, void *userdata) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue