mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	adapter: return an error when we can't find a format
This commit is contained in:
		
							parent
							
								
									d31c057b42
								
							
						
					
					
						commit
						963b00b77b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -173,7 +173,7 @@ static int find_format(struct pw_impl_node *node, enum pw_direction direction,
 | 
			
		|||
				SPA_PARAM_EnumFormat, &state,
 | 
			
		||||
				NULL, &format, &b)) != 1) {
 | 
			
		||||
		pw_log_warn(NAME " %p: can't get format: %s", node, spa_strerror(res));
 | 
			
		||||
		return res;
 | 
			
		||||
		return res < 0 ? res : -ENOENT;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if ((res = spa_format_parse(format, media_type, media_subtype)) < 0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue