mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
validate: Handle G_LOG_ERROR in our glog handler
This commit is contained in:
parent
2f957ab932
commit
e50d41420e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue