mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse: only find linked source or sink endpoints
This commit is contained in:
		
							parent
							
								
									8c43ebaf3e
								
							
						
					
					
						commit
						b518496136
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -166,8 +166,9 @@ struct global *pa_context_find_linked(pa_context *c, uint32_t idx)
 | 
			
		|||
		else
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		if (f == NULL)
 | 
			
		||||
		if (f == NULL || ((f->mask & (PA_SUBSCRIPTION_MASK_SOURCE | PA_SUBSCRIPTION_MASK_SINK)) == 0))
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		return f;
 | 
			
		||||
	}
 | 
			
		||||
	return NULL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue