mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	node: handle errors from enum_param
This commit is contained in:
		
							parent
							
								
									6e66456381
								
							
						
					
					
						commit
						20bcbbde78
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -359,8 +359,11 @@ static void node_set_param(void *object, uint32_t id, uint32_t flags,
 | 
			
		|||
	struct pw_resource *resource = object;
 | 
			
		||||
	struct resource_data *data = pw_resource_get_user_data(resource);
 | 
			
		||||
	struct pw_node *node = data->node;
 | 
			
		||||
	int res;
 | 
			
		||||
 | 
			
		||||
	spa_node_set_param(node->node, id, flags, param);
 | 
			
		||||
	if ((res = spa_node_set_param(node->node, id, flags, param)) < 0)
 | 
			
		||||
		pw_core_resource_error(resource->client->core_resource,
 | 
			
		||||
				resource->id, res, spa_strerror(res));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void node_send_command(void *object, const struct spa_command *command)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue