mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: make sure our buffers are large enough
Allocate the buffers a bit larger so that we can handle a client that sends a bit more data and we don't underrun.
This commit is contained in:
		
							parent
							
								
									635a378ca4
								
							
						
					
					
						commit
						ecc975d089
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -1248,8 +1248,8 @@ static const struct spa_pod *get_buffers_param(struct stream *s,
 | 
				
			||||||
	stride = s->frame_size;
 | 
						stride = s->frame_size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (s->direction == PW_DIRECTION_OUTPUT) {
 | 
						if (s->direction == PW_DIRECTION_OUTPUT) {
 | 
				
			||||||
		maxsize = attr->tlength;
 | 
							maxsize = attr->tlength * 2;
 | 
				
			||||||
		size = attr->minreq;
 | 
							size = attr->minreq * 2;
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		size = attr->fragsize;
 | 
							size = attr->fragsize;
 | 
				
			||||||
		maxsize = attr->fragsize * MAX_BUFFERS;
 | 
							maxsize = attr->fragsize * MAX_BUFFERS;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue