mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: a2dp-sink: update follower current time
Update follower current time in process, since it is otherwise not updated. Fixes bitpool control as follower.
This commit is contained in:
		
							parent
							
								
									ca18b8b733
								
							
						
					
					
						commit
						ebccd89ae1
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1478,6 +1478,11 @@ static int impl_node_process(void *object)
 | 
			
		|||
		io->status = SPA_STATUS_OK;
 | 
			
		||||
	}
 | 
			
		||||
	if (!spa_list_is_empty(&port->ready)) {
 | 
			
		||||
		if (this->following) {
 | 
			
		||||
			struct timespec now;
 | 
			
		||||
			spa_system_clock_gettime(this->data_system, CLOCK_MONOTONIC, &now);
 | 
			
		||||
			this->current_time = SPA_TIMESPEC_TO_NSEC(&now);
 | 
			
		||||
		}
 | 
			
		||||
		if (this->need_flush)
 | 
			
		||||
			reset_buffer(this);
 | 
			
		||||
		flush_data(this, this->current_time);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue