From 6754d4e9f2c4969ca8c3ed2aaa165b7d5d45daaa Mon Sep 17 00:00:00 2001 From: Jimmy Ohn Date: Fri, 15 Feb 2019 14:59:20 +0900 Subject: [PATCH] validate: Print some log when environment variable is not set print some log when environment variable is not set --- validate/gst/validate/validate.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/validate.c b/validate/gst/validate/validate.c index 82599f2222..0405b66b24 100644 --- a/validate/gst/validate/validate.c +++ b/validate/gst/validate/validate.c @@ -127,8 +127,10 @@ create_config (const gchar * config, const gchar * suffix) { GList *structures = NULL, *tmp, *result = NULL; - if (!suffix) + if (!suffix) { + GST_WARNING ("suffix is NULL"); return NULL; + } structures = gst_validate_utils_structs_parse_from_filename (config); if (!structures) { @@ -197,8 +199,10 @@ gst_validate_plugin_get_config (GstPlugin * plugin) } config = g_getenv ("GST_VALIDATE_CONFIG"); - if (!config) + if (!config) { + GST_DEBUG ("GST_VALIDATE_CONFIG not set"); return NULL; + } tmp = g_strsplit (config, G_SEARCHPATH_SEPARATOR_S, -1); for (i = 0; tmp[i] != NULL; i++) {