mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	conf: fix priority of the overrides
A config file with a higher level should override one with a lower level. Fixes #4816
This commit is contained in:
		
							parent
							
								
									bef0706238
								
							
						
					
					
						commit
						88d7d5706a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -441,7 +441,7 @@ static bool check_override(struct pw_properties *conf, const char *name, int lev
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		if (sscanf(it->key, "override.%d.%d.config.name", &lev, &idx) != 2)
 | 
							if (sscanf(it->key, "override.%d.%d.config.name", &lev, &idx) != 2)
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		if (lev < level)
 | 
							if (lev > level)
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue