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
				
			
		| 
						 | 
				
			
			@ -242,9 +242,10 @@ static int impl_node_add_port(struct spa_node *node, enum spa_direction directio
 | 
			
		|||
			SPA_PORT_CHANGE_MASK_PARAMS;
 | 
			
		||||
	port->info = SPA_PORT_INFO_INIT();
 | 
			
		||||
	port->info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS |
 | 
			
		||||
			   SPA_PORT_FLAG_NO_REF |
 | 
			
		||||
			   SPA_PORT_FLAG_DYNAMIC_DATA |
 | 
			
		||||
			   SPA_PORT_FLAG_REMOVABLE |
 | 
			
		||||
			   SPA_PORT_FLAG_OPTIONAL |
 | 
			
		||||
			   SPA_PORT_FLAG_IN_PLACE;
 | 
			
		||||
			   SPA_PORT_FLAG_OPTIONAL;
 | 
			
		||||
	port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
			
		||||
	port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
			
		||||
	port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, SPA_PARAM_INFO_READ);
 | 
			
		||||
| 
						 | 
				
			
			@ -928,7 +929,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
			
		|||
	port->info = SPA_PORT_INFO_INIT();
 | 
			
		||||
	port->info.change_mask |= SPA_PORT_CHANGE_MASK_FLAGS;
 | 
			
		||||
	port->info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS |
 | 
			
		||||
				SPA_PORT_FLAG_NO_REF;
 | 
			
		||||
				SPA_PORT_FLAG_DYNAMIC_DATA;
 | 
			
		||||
	port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
 | 
			
		||||
	port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
			
		||||
	port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue