mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	node: add props to add_port
This commit is contained in:
		
							parent
							
								
									eea062ee53
								
							
						
					
					
						commit
						b743518f78
					
				
					 26 changed files with 118 additions and 52 deletions
				
			
		| 
						 | 
				
			
			@ -341,7 +341,8 @@ impl_node_sync(struct spa_node *node, uint32_t seq)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
impl_node_add_port(struct spa_node *node, enum spa_direction direction, uint32_t port_id)
 | 
			
		||||
impl_node_add_port(struct spa_node *node, enum spa_direction direction, uint32_t port_id,
 | 
			
		||||
		const struct spa_dict *props)
 | 
			
		||||
{
 | 
			
		||||
	struct node *this;
 | 
			
		||||
	struct impl *impl;
 | 
			
		||||
| 
						 | 
				
			
			@ -355,7 +356,7 @@ impl_node_add_port(struct spa_node *node, enum spa_direction direction, uint32_t
 | 
			
		|||
	if (direction != impl->direction)
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
 | 
			
		||||
	if ((res = spa_node_add_port(impl->adapter_mix, direction, port_id)) < 0)
 | 
			
		||||
	if ((res = spa_node_add_port(impl->adapter_mix, direction, port_id, props)) < 0)
 | 
			
		||||
		return res;
 | 
			
		||||
 | 
			
		||||
	if ((res = spa_node_port_set_io(impl->adapter_mix,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue