mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-16 04:15:51 +00:00
omx: improve debug message when we can't find the config file
Mention where we looked for the config file.
This commit is contained in:
parent
22742e7af5
commit
453d81886d
1 changed files with 8 additions and 1 deletions
|
@ -2387,7 +2387,14 @@ plugin_init (GstPlugin * plugin)
|
||||||
config = g_key_file_new ();
|
config = g_key_file_new ();
|
||||||
if (!g_key_file_load_from_dirs (config, *config_name,
|
if (!g_key_file_load_from_dirs (config, *config_name,
|
||||||
(const gchar **) config_dirs, NULL, G_KEY_FILE_NONE, &err)) {
|
(const gchar **) config_dirs, NULL, G_KEY_FILE_NONE, &err)) {
|
||||||
GST_ERROR ("Failed to load configuration file: %s", err->message);
|
gchar *paths;
|
||||||
|
|
||||||
|
paths = g_strjoinv (":", config_dirs);
|
||||||
|
GST_ERROR ("Failed to load configuration file: %s (searched in: %s as per "
|
||||||
|
"GST_OMX_CONFIG_DIR environment variable, the xdg user config "
|
||||||
|
"directory (or XDG_CONFIG_HOME) and the system config directory "
|
||||||
|
"(or XDG_CONFIG_DIRS)", err->message, paths);
|
||||||
|
g_free (paths);
|
||||||
g_error_free (err);
|
g_error_free (err);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue