mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: ensure latency is multiple of frame_size
This commit is contained in:
		
							parent
							
								
									01de0b966a
								
							
						
					
					
						commit
						6ca297797f
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -410,6 +410,8 @@ static uint32_t fix_playback_buffer_attr(struct stream *s, struct buffer_attr *a
 | 
			
		|||
		else
 | 
			
		||||
			latency = attr->minreq;
 | 
			
		||||
 | 
			
		||||
		latency -= latency % frame_size;
 | 
			
		||||
 | 
			
		||||
		if (attr->tlength >= latency)
 | 
			
		||||
			attr->tlength -= latency;
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue