mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05: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) {
|
if ((hnd = dlopen(filename, RTLD_NOW)) == NULL) {
|
||||||
res = -ENOENT;
|
res = -ENOENT;
|
||||||
pw_log_error("can't load %s: %s", filename, dlerror());
|
pw_log_error("can't load %s: %s", filename, dlerror());
|
||||||
goto error_free_filename;
|
goto error_free_filename;
|
||||||
}
|
}
|
||||||
if ((enum_func = dlsym(hnd, SPA_HANDLE_FACTORY_ENUM_FUNC_NAME)) == NULL) {
|
if ((enum_func = dlsym(hnd, SPA_HANDLE_FACTORY_ENUM_FUNC_NAME)) == NULL) {
|
||||||
res = -ESRCH;
|
res = -ENOSYS;
|
||||||
pw_log_error("can't find enum function");
|
pw_log_error("can't find enum function: %s", dlerror());
|
||||||
goto error_dlclose;
|
goto error_dlclose;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((plugin = calloc(1, sizeof(struct plugin))) == NULL) {
|
if ((plugin = calloc(1, sizeof(struct plugin))) == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue