From e50d41420e60dc20e9353f5212fbde1b581c044f Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 1 Feb 2019 19:30:44 -0300 Subject: [PATCH] validate: Handle G_LOG_ERROR in our glog handler --- validate/gst/validate/gst-validate-reporter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-reporter.c b/validate/gst/validate/gst-validate-reporter.c index ccf1fee..a4f14d8 100644 --- a/validate/gst/validate/gst-validate-reporter.c +++ b/validate/gst/validate/gst-validate-reporter.c @@ -286,7 +286,9 @@ gst_validate_reporter_g_log_func (const gchar * log_domain, GLogLevelFlags log_level, const gchar * message, GstValidateReporter * reporter) { - if (log_level & G_LOG_LEVEL_CRITICAL) + if (log_level & G_LOG_LEVEL_ERROR) + gst_validate_default_log_hanlder (log_domain, log_level, message, reporter); + else if (log_level & G_LOG_LEVEL_CRITICAL) GST_VALIDATE_REPORT (reporter, G_LOG_CRITICAL, "%s", message); else if (log_level & G_LOG_LEVEL_WARNING) GST_VALIDATE_REPORT (reporter, G_LOG_WARNING, "%s", message); -- 2.7.4