mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	resource: pass the resource id in the error
This commit is contained in:
		
							parent
							
								
									4401e479c6
								
							
						
					
					
						commit
						f46a83dcb7
					
				
					 15 changed files with 46 additions and 54 deletions
				
			
		| 
						 | 
				
			
			@ -83,11 +83,11 @@ static void *create_object(void *_data,
 | 
			
		|||
 | 
			
		||||
      no_resource:
 | 
			
		||||
	pw_log_error("client-node needs a resource");
 | 
			
		||||
	pw_resource_error(resource, -EINVAL, "no resource");
 | 
			
		||||
	pw_resource_error(resource, new_id, -EINVAL, "no resource");
 | 
			
		||||
	goto done;
 | 
			
		||||
      no_mem:
 | 
			
		||||
	pw_log_error("can't create node");
 | 
			
		||||
	pw_resource_error(resource, -ENOMEM, "no memory");
 | 
			
		||||
	pw_resource_error(resource, new_id, -ENOMEM, "no memory");
 | 
			
		||||
	goto done;
 | 
			
		||||
      done:
 | 
			
		||||
	if (properties)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue