mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
validate-report: Set conditions in which a report can't be master.
This commit is contained in:
parent
582cebeae6
commit
167c29125d
3 changed files with 9 additions and 5 deletions
|
@ -157,11 +157,10 @@ _find_master_report_on_pad (GstPad * pad, GstValidateReport * report)
|
|||
|
||||
if (prev_report) {
|
||||
if (prev_report->master_report)
|
||||
gst_validate_report_set_master_report (report,
|
||||
result = gst_validate_report_set_master_report (report,
|
||||
prev_report->master_report);
|
||||
else
|
||||
gst_validate_report_set_master_report (report, prev_report);
|
||||
result = TRUE;
|
||||
result = gst_validate_report_set_master_report (report, prev_report);
|
||||
}
|
||||
|
||||
done:
|
||||
|
|
|
@ -620,13 +620,16 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
|||
g_string_free (string, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
gboolean
|
||||
gst_validate_report_set_master_report (GstValidateReport * report,
|
||||
GstValidateReport * master_report)
|
||||
{
|
||||
GList *tmp;
|
||||
gboolean add_shadow_report = TRUE;
|
||||
|
||||
if (master_report->reporting_level >= GST_VALIDATE_REPORTING_LEVEL_MONITOR)
|
||||
return FALSE;
|
||||
|
||||
report->master_report = master_report;
|
||||
|
||||
GST_VALIDATE_REPORT_SHADOW_REPORTS_LOCK (master_report);
|
||||
|
@ -642,6 +645,8 @@ gst_validate_report_set_master_report (GstValidateReport * report,
|
|||
g_list_append (master_report->shadow_reports,
|
||||
gst_validate_report_ref (report));
|
||||
GST_VALIDATE_REPORT_SHADOW_REPORTS_UNLOCK (master_report);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -225,7 +225,7 @@ void gst_validate_printf_valist (gpointer source,
|
|||
const gchar * format,
|
||||
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);
|
||||
gboolean 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