pipewire: return better errno symbol not found

This commit is contained in:
Wim Taymans 2019-10-16 10:43:36 +02:00
parent 2b75f28d8b
commit e28b5b8232

View file

@ -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) {