mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
validate: Print some log when environment variable is not set
print some log when environment variable is not set
This commit is contained in:
parent
9521fdbf88
commit
6754d4e9f2
1 changed files with 6 additions and 2 deletions
|
@ -127,8 +127,10 @@ create_config (const gchar * config, const gchar * suffix)
|
||||||
{
|
{
|
||||||
GList *structures = NULL, *tmp, *result = NULL;
|
GList *structures = NULL, *tmp, *result = NULL;
|
||||||
|
|
||||||
if (!suffix)
|
if (!suffix) {
|
||||||
|
GST_WARNING ("suffix is NULL");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
structures = gst_validate_utils_structs_parse_from_filename (config);
|
structures = gst_validate_utils_structs_parse_from_filename (config);
|
||||||
if (!structures) {
|
if (!structures) {
|
||||||
|
@ -197,8 +199,10 @@ gst_validate_plugin_get_config (GstPlugin * plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
config = g_getenv ("GST_VALIDATE_CONFIG");
|
config = g_getenv ("GST_VALIDATE_CONFIG");
|
||||||
if (!config)
|
if (!config) {
|
||||||
|
GST_DEBUG ("GST_VALIDATE_CONFIG not set");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
tmp = g_strsplit (config, G_SEARCHPATH_SEPARATOR_S, -1);
|
tmp = g_strsplit (config, G_SEARCHPATH_SEPARATOR_S, -1);
|
||||||
for (i = 0; tmp[i] != NULL; i++) {
|
for (i = 0; tmp[i] != NULL; i++) {
|
||||||
|
|
Loading…
Reference in a new issue