mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: media-sink: fix wrong clock
Should use position for graph clock rate.
This commit is contained in:
		
							parent
							
								
									84c5ba09dc
								
							
						
					
					
						commit
						95b13391eb
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -489,9 +489,9 @@ static uint64_t get_reference_time(struct impl *this, uint64_t *duration_ns_ret)
 | 
			
		|||
 | 
			
		||||
	/* Account for resampling delay */
 | 
			
		||||
	resampling = (port->current_format.info.raw.rate != this->process_rate) || this->following;
 | 
			
		||||
	if (port->rate_match && this->clock && resampling) {
 | 
			
		||||
	if (port->rate_match && this->position && resampling) {
 | 
			
		||||
		t -= (uint64_t)port->rate_match->delay * SPA_NSEC_PER_SEC
 | 
			
		||||
			/ this->clock->rate.denom;
 | 
			
		||||
			/ this->position->clock.rate.denom;
 | 
			
		||||
		t += SPA_NSEC_PER_SEC / port->current_format.info.raw.rate;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue