mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: mark ports and buffers as DYNAMIC
Only passthrough buffer data when the buffer and ports are marked as DYNAMIC. Use extra buffer for nodes that keep a ref on buffers (resample).
This commit is contained in:
		
							parent
							
								
									df5c81e3be
								
							
						
					
					
						commit
						036ca89c0e
					
				
					 11 changed files with 81 additions and 39 deletions
				
			
		| 
						 | 
				
			
			@ -633,6 +633,7 @@ static int negotiate_buffers(struct impl *impl)
 | 
			
		|||
	aligns = alloca(sizeof(uint32_t) * blocks);
 | 
			
		||||
	for (i = 0; i < blocks; i++) {
 | 
			
		||||
		datas[i].type = SPA_DATA_MemPtr;
 | 
			
		||||
		datas[i].flags = SPA_DATA_FLAG_DYNAMIC;
 | 
			
		||||
		datas[i].maxsize = size;
 | 
			
		||||
		aligns[i] = align;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue