mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 23:45:35 +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 =
|
report->timestamp =
|
||||||
gst_util_get_timestamp () - _gst_validate_report_start_time;
|
gst_util_get_timestamp () - _gst_validate_report_start_time;
|
||||||
report->level = issue->default_level;
|
report->level = issue->default_level;
|
||||||
|
report->reporting_level = GST_VALIDATE_REPORTING_LEVEL_UNKNOWN;
|
||||||
|
|
||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
|
@ -690,3 +691,10 @@ gst_validate_report_printf (GstValidateReport * report)
|
||||||
gst_validate_report_print_description (report);
|
gst_validate_report_print_description (report);
|
||||||
gst_validate_printf (NULL, "\n");
|
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;
|
GMutex shadow_reports_lock;
|
||||||
GstValidateReport *master_report;
|
GstValidateReport *master_report;
|
||||||
GList *shadow_reports;
|
GList *shadow_reports;
|
||||||
|
|
||||||
|
GstValidateReportingLevel reporting_level;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GST_VALIDATE_ISSUE_FORMAT G_GUINTPTR_FORMAT " (%s) : %s(%" G_GUINTPTR_FORMAT "): %s"
|
#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;
|
va_list args) G_GNUC_NO_INSTRUMENT;
|
||||||
gboolean gst_validate_report_should_print (GstValidateReport * report);
|
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_master_report(GstValidateReport *report, GstValidateReport *master_report);
|
||||||
|
void gst_validate_report_set_reporting_level (GstValidateReport *report, GstValidateReportingLevel level);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue