mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: use PIPEWIRE_LATENCY env as fallback
This commit is contained in:
		
							parent
							
								
									5fda46fdb9
								
							
						
					
					
						commit
						b89e07f8c0
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -969,6 +969,10 @@ filter_new(struct pw_context *context, const char *name,
 | 
			
		|||
			str = name;
 | 
			
		||||
		pw_properties_set(props, PW_KEY_NODE_NAME, str);
 | 
			
		||||
	}
 | 
			
		||||
	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) {
 | 
			
		||||
		if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
 | 
			
		||||
			pw_properties_set(props, PW_KEY_NODE_LATENCY, str);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	spa_hook_list_init(&impl->hooks);
 | 
			
		||||
	this->properties = props;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1118,6 +1118,10 @@ stream_new(struct pw_context *context, const char *name,
 | 
			
		|||
			str = name;
 | 
			
		||||
		pw_properties_set(props, PW_KEY_NODE_NAME, str);
 | 
			
		||||
	}
 | 
			
		||||
	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) {
 | 
			
		||||
		if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
 | 
			
		||||
			pw_properties_set(props, PW_KEY_NODE_LATENCY, str);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	spa_hook_list_init(&impl->hooks);
 | 
			
		||||
	this->properties = props;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue