From 60a2dfaf72fc33c6a2d60442e85cf899bf7dbe0f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 23 Aug 2013 11:07:40 +0200 Subject: [PATCH] validate-report: Fix critical flag handling criticals are warnings/issues also warnings are issues also --- validate/gst/validate/gst-validate-report.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index adbe4e4132..eaba8432ce 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -293,11 +293,11 @@ gst_validate_report_area_get_name (GstValidateReportArea area) void gst_validate_report_check_abort (GstValidateReport * report) { - if ((report->level == GST_VALIDATE_REPORT_LEVEL_ISSUE && + if ((report->level <= GST_VALIDATE_REPORT_LEVEL_ISSUE && _gst_validate_flags & GST_VALIDATE_FATAL_ISSUES) || - (report->level == GST_VALIDATE_REPORT_LEVEL_WARNING && + (report->level <= GST_VALIDATE_REPORT_LEVEL_WARNING && _gst_validate_flags & GST_VALIDATE_FATAL_WARNINGS) || - (report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL && + (report->level <= GST_VALIDATE_REPORT_LEVEL_CRITICAL && _gst_validate_flags & GST_VALIDATE_FATAL_CRITICALS)) { g_error ("Fatal report received: %" GST_VALIDATE_ERROR_REPORT_PRINT_FORMAT, GST_VALIDATE_REPORT_PRINT_ARGS (report));