Skip to content
Snippets Groups Projects
Commit f6a717f5 authored by Simon McVittie's avatar Simon McVittie
Browse files

graphics: Produce more diagnostic information if we can't load the loader


If running without supplying library expectations, we won't necessarily
have this anywhere else in our output.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 9a3cfb41
No related branches found
No related tags found
1 merge request!84Enumerate Mesa DRI modules and VA-API drivers
...@@ -2717,8 +2717,30 @@ _srt_get_modules_full (gchar **envp, ...@@ -2717,8 +2717,30 @@ _srt_get_modules_full (gchar **envp,
gchar *libdir; gchar *libdir;
gchar *dri_path; gchar *dri_path;
GList *extras = NULL; GList *extras = NULL;
_srt_check_library_presence (helpers_path, loader_libraries[i], multiarch_tuple, NULL, NULL, SrtLibraryIssues issues;
envp, SRT_LIBRARY_SYMBOLS_FORMAT_PLAIN, &library_details);
issues = _srt_check_library_presence (helpers_path,
loader_libraries[i],
multiarch_tuple,
NULL, /* symbols path */
NULL, /* hidden dependencies */
envp,
SRT_LIBRARY_SYMBOLS_FORMAT_PLAIN,
&library_details);
if (issues & (SRT_LIBRARY_ISSUES_CANNOT_LOAD |
SRT_LIBRARY_ISSUES_INTERNAL_ERROR |
SRT_LIBRARY_ISSUES_TIMEOUT))
{
const char *messages = srt_library_get_messages (library_details);
if (messages == NULL || messages[0] == '\0')
messages = "(no diagnostic output)";
g_debug ("Unable to load library %s: %s",
loader_libraries[i],
messages);
}
const gchar *loader_path = srt_library_get_absolute_path (library_details); const gchar *loader_path = srt_library_get_absolute_path (library_details);
if (loader_path == NULL) if (loader_path == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment