mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	context: report ENOENT when a spa lib is not found
This commit is contained in:
		
							parent
							
								
									ca4b549472
								
							
						
					
					
						commit
						378f655a3d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1117,9 +1117,9 @@ struct spa_handle *pw_context_load_spa_handle(struct pw_context *context,
 | 
				
			||||||
	if (lib == NULL && info != NULL)
 | 
						if (lib == NULL && info != NULL)
 | 
				
			||||||
		lib = spa_dict_lookup(info, SPA_KEY_LIBRARY_NAME);
 | 
							lib = spa_dict_lookup(info, SPA_KEY_LIBRARY_NAME);
 | 
				
			||||||
	if (lib == NULL) {
 | 
						if (lib == NULL) {
 | 
				
			||||||
 | 
							errno = ENOENT;
 | 
				
			||||||
		pw_log_warn(NAME" %p: no library for %s: %m",
 | 
							pw_log_warn(NAME" %p: no library for %s: %m",
 | 
				
			||||||
				context, factory_name);
 | 
									context, factory_name);
 | 
				
			||||||
		errno = ENOENT;
 | 
					 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue