mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	context: use first data-loop class when unset
When a node does not specify a data-loop class, use the class of the first data loop. This makes the nodes spread out over the first (default) data-loop class.
This commit is contained in:
		
							parent
							
								
									3e760ea7d7
								
							
						
					
					
						commit
						c8efa0fae2
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -665,10 +665,8 @@ static struct pw_data_loop *acquire_data_loop(struct impl *impl, const char *nam
 | 
			
		|||
		const char *ln = l->impl->loop->name;
 | 
			
		||||
		int score = 0;
 | 
			
		||||
 | 
			
		||||
		if (!name && !klass) {
 | 
			
		||||
			best_loop = l;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		if (klass == NULL)
 | 
			
		||||
			klass = l->impl->class;
 | 
			
		||||
 | 
			
		||||
		if (name && ln && fnmatch(name, ln, FNM_EXTMATCH) == 0)
 | 
			
		||||
			score += 2;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue