From 378f655a3da7c98cbfad342dfd2788b45f1527f9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 9 Apr 2021 17:26:22 +0200 Subject: [PATCH] context: report ENOENT when a spa lib is not found --- src/pipewire/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 396ba2f79..d3dc7f023 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -1117,9 +1117,9 @@ struct spa_handle *pw_context_load_spa_handle(struct pw_context *context, if (lib == NULL && info != NULL) lib = spa_dict_lookup(info, SPA_KEY_LIBRARY_NAME); if (lib == NULL) { + errno = ENOENT; pw_log_warn(NAME" %p: no library for %s: %m", context, factory_name); - errno = ENOENT; return NULL; }