mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
validate-report: Add a reporting level field and setter.
This commit is contained in:
parent
030e7e8ba8
commit
582cebeae6
2 changed files with 11 additions and 0 deletions
|
@ -436,6 +436,7 @@ gst_validate_report_new (GstValidateIssue * issue,
|
|||
report->timestamp =
|
||||
gst_util_get_timestamp () - _gst_validate_report_start_time;
|
||||
report->level = issue->default_level;
|
||||
report->reporting_level = GST_VALIDATE_REPORTING_LEVEL_UNKNOWN;
|
||||
|
||||
return report;
|
||||
}
|
||||
|
@ -690,3 +691,10 @@ gst_validate_report_printf (GstValidateReport * report)
|
|||
gst_validate_report_print_description (report);
|
||||
gst_validate_printf (NULL, "\n");
|
||||
}
|
||||
|
||||
void
|
||||
gst_validate_report_set_reporting_level (GstValidateReport * report,
|
||||
GstValidateReportingLevel level)
|
||||
{
|
||||
report->reporting_level = level;
|
||||
}
|
||||
|
|
|
@ -176,6 +176,8 @@ struct _GstValidateReport {
|
|||
GMutex shadow_reports_lock;
|
||||
GstValidateReport *master_report;
|
||||
GList *shadow_reports;
|
||||
|
||||
GstValidateReportingLevel reporting_level;
|
||||
};
|
||||
|
||||
#define GST_VALIDATE_ISSUE_FORMAT G_GUINTPTR_FORMAT " (%s) : %s(%" G_GUINTPTR_FORMAT "): %s"
|
||||
|
@ -224,6 +226,7 @@ void gst_validate_printf_valist (gpointer source,
|
|||
va_list args) G_GNUC_NO_INSTRUMENT;
|
||||
gboolean gst_validate_report_should_print (GstValidateReport * report);
|
||||
void gst_validate_report_set_master_report(GstValidateReport *report, GstValidateReport *master_report);
|
||||
void gst_validate_report_set_reporting_level (GstValidateReport *report, GstValidateReportingLevel level);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue