mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: only call callbacks when active
JACK applications expect the callbacks only when activated. Fixes #1461
This commit is contained in:
		
							parent
							
								
									dd5b460daa
								
							
						
					
					
						commit
						40f1d2b881
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -718,7 +718,7 @@ void jack_get_version(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto
 | 
			
		|||
 | 
			
		||||
#define do_callback(c,callback,...)				\
 | 
			
		||||
({								\
 | 
			
		||||
	if (c->callback) {					\
 | 
			
		||||
	if (c->callback && c->active) {				\
 | 
			
		||||
		pw_thread_loop_unlock(c->context.loop);		\
 | 
			
		||||
		pthread_mutex_lock(&c->rt_lock);		\
 | 
			
		||||
		c->callback(__VA_ARGS__);			\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue