mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	resample: limit input size to max size of empty space
When flushing use the max size of the empty space, not the max size of the input buffers, which might be larger.
This commit is contained in:
		
							parent
							
								
									801bd98233
								
							
						
					
					
						commit
						a9bf93030e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -822,7 +822,7 @@ static int impl_node_process(void *object)
 | 
				
			||||||
	dst_datas = alloca(sizeof(void*) * this->resample.channels);
 | 
						dst_datas = alloca(sizeof(void*) * this->resample.channels);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (size == 0) {
 | 
						if (size == 0) {
 | 
				
			||||||
		size = sb->datas[0].maxsize;
 | 
							size = MAX_SAMPLES * sizeof(float);
 | 
				
			||||||
		for (i = 0; i < sb->n_datas; i++)
 | 
							for (i = 0; i < sb->n_datas; i++)
 | 
				
			||||||
			src_datas[i] = SPA_PTR_ALIGN(this->empty, MAX_ALIGN, void);
 | 
								src_datas[i] = SPA_PTR_ALIGN(this->empty, MAX_ALIGN, void);
 | 
				
			||||||
		inport->offset = 0;
 | 
							inport->offset = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue