mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	export-sink: add more buffer space
This commit is contained in:
		
							parent
							
								
									6a8fe43a0c
								
							
						
					
					
						commit
						c879b85884
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -45,7 +45,7 @@
 | 
			
		|||
 | 
			
		||||
#define M_PI_M2 ( M_PI + M_PI )
 | 
			
		||||
 | 
			
		||||
#define MAX_BUFFERS	16
 | 
			
		||||
#define MAX_BUFFERS	64
 | 
			
		||||
 | 
			
		||||
#define DEFAULT_PARAM 0.1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -347,6 +347,9 @@ static int impl_port_use_buffers(void *object,
 | 
			
		|||
	struct data *d = object;
 | 
			
		||||
	uint32_t i;
 | 
			
		||||
 | 
			
		||||
	if (n_buffers > MAX_BUFFERS)
 | 
			
		||||
		return -ENOSPC;
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < n_buffers; i++)
 | 
			
		||||
		d->buffers[i] = buffers[i];
 | 
			
		||||
	d->n_buffers = n_buffers;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue