validate: Handle G_LOG_ERROR in our glog handler

This commit is contained in:
Thibault Saunier 2019-02-01 19:30:44 -03:00 committed by Mathieu Duponchelle
parent 2f957ab932
commit e50d41420e

View file

@ -286,7 +286,9 @@ gst_validate_reporter_g_log_func (const gchar * log_domain,
GLogLevelFlags log_level, const gchar * message, GLogLevelFlags log_level, const gchar * message,
GstValidateReporter * reporter) 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); GST_VALIDATE_REPORT (reporter, G_LOG_CRITICAL, "%s", message);
else if (log_level & G_LOG_LEVEL_WARNING) else if (log_level & G_LOG_LEVEL_WARNING)
GST_VALIDATE_REPORT (reporter, G_LOG_WARNING, "%s", message); GST_VALIDATE_REPORT (reporter, G_LOG_WARNING, "%s", message);