mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	context: make it possible to control loaded modules
use the PIPEWIRE_PROFILE_MODULES env variable to load the modules when nothing else is given.
This commit is contained in:
		
							parent
							
								
									8e3ae33550
								
							
						
					
					
						commit
						2cf5bf7ac1
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -313,7 +313,10 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	this->sc_pagesize = sysconf(_SC_PAGESIZE);
 | 
						this->sc_pagesize = sysconf(_SC_PAGESIZE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((str = pw_properties_get(properties, PW_KEY_CONTEXT_PROFILE_MODULES)) == NULL)
 | 
						str = pw_properties_get(properties, PW_KEY_CONTEXT_PROFILE_MODULES);
 | 
				
			||||||
 | 
						if (str == NULL)
 | 
				
			||||||
 | 
							str = getenv("PIPEWIRE_PROFILE_MODULES");
 | 
				
			||||||
 | 
						if (str == NULL)
 | 
				
			||||||
		str = "default";
 | 
							str = "default";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	load_module_profile(this, str);
 | 
						load_module_profile(this, str);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue