mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: support: loop: print previous mask when updating
Print the previous event mask in `loop_update_io()` as well as the new one.
This commit is contained in:
		
							parent
							
								
									8941fc2866
								
							
						
					
					
						commit
						275e23a34d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -443,8 +443,10 @@ static int loop_update_io(void *object, struct spa_source *source, uint32_t mask
 | 
			
		|||
	struct impl *impl = object;
 | 
			
		||||
	struct source_impl *s = SPA_CONTAINER_OF(source, struct source_impl, source);
 | 
			
		||||
	int res;
 | 
			
		||||
 | 
			
		||||
	spa_log_trace(impl->log, "%p: update %08x -> %08x", s, source->mask, mask);
 | 
			
		||||
	source->mask = mask;
 | 
			
		||||
	spa_log_trace(impl->log, "%p: update %08x", s, mask);
 | 
			
		||||
 | 
			
		||||
	if (s->fallback)
 | 
			
		||||
		res = spa_loop_utils_enable_idle(&impl->utils, s->fallback,
 | 
			
		||||
				mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue