mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	impl-link: don't recalc latency on feedback links
Or else we might keep updating the latency in a loop.
This commit is contained in:
		
							parent
							
								
									dc5ed8f327
								
							
						
					
					
						commit
						c0b002689b
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -850,6 +850,7 @@ static void input_port_latency_changed(void *data)
 | 
			
		|||
{
 | 
			
		||||
	struct impl *impl = data;
 | 
			
		||||
	struct pw_impl_link *this = &impl->this;
 | 
			
		||||
	if (!this->feedback)
 | 
			
		||||
		pw_impl_port_recalc_latency(this->output);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -857,6 +858,7 @@ static void output_port_latency_changed(void *data)
 | 
			
		|||
{
 | 
			
		||||
	struct impl *impl = data;
 | 
			
		||||
	struct pw_impl_link *this = &impl->this;
 | 
			
		||||
	if (!this->feedback)
 | 
			
		||||
		pw_impl_port_recalc_latency(this->input);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue