mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-11-05 16:26:16 +00:00
pipewire: return better errno symbol not found
This commit is contained in:
parent
2b75f28d8b
commit
e28b5b8232
1 changed files with 5 additions and 5 deletions
|
@ -112,13 +112,13 @@ open_plugin(struct registry *registry,
|
|||
|
||||
if ((hnd = dlopen(filename, RTLD_NOW)) == NULL) {
|
||||
res = -ENOENT;
|
||||
pw_log_error("can't load %s: %s", filename, dlerror());
|
||||
goto error_free_filename;
|
||||
pw_log_error("can't load %s: %s", filename, dlerror());
|
||||
goto error_free_filename;
|
||||
}
|
||||
if ((enum_func = dlsym(hnd, SPA_HANDLE_FACTORY_ENUM_FUNC_NAME)) == NULL) {
|
||||
res = -ESRCH;
|
||||
pw_log_error("can't find enum function");
|
||||
goto error_dlclose;
|
||||
res = -ENOSYS;
|
||||
pw_log_error("can't find enum function: %s", dlerror());
|
||||
goto error_dlclose;
|
||||
}
|
||||
|
||||
if ((plugin = calloc(1, sizeof(struct plugin))) == NULL) {
|
||||
|
|
Loading…
Reference in a new issue