mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	node-driver: Log when we resync
This commit is contained in:
		
							parent
							
								
									c690aedc89
								
							
						
					
					
						commit
						1f40695b69
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -305,6 +305,8 @@ static void on_timeout(struct spa_source *source)
 | 
			
		|||
		err = (double)position - (double)current_position;
 | 
			
		||||
		if (fabs(err) > this->max_error) {
 | 
			
		||||
			if (fabs(err) > this->max_resync) {
 | 
			
		||||
				spa_log_warn(this->log, "err %f > max_resync %f, resetting",
 | 
			
		||||
						err, this->max_resync);
 | 
			
		||||
				spa_dll_set_bw(&this->dll, SPA_DLL_BW_MIN, duration, rate);
 | 
			
		||||
				position = current_position;
 | 
			
		||||
				err = 0.0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue