mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 22:48:49 +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) {
|
||||||
if (prev_report->master_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);
|
prev_report->master_report);
|
||||||
else
|
else
|
||||||
gst_validate_report_set_master_report (report, prev_report);
|
result = gst_validate_report_set_master_report (report, prev_report);
|
||||||
result = TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
|
@ -620,13 +620,16 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
||||||
g_string_free (string, TRUE);
|
g_string_free (string, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
gboolean
|
||||||
gst_validate_report_set_master_report (GstValidateReport * report,
|
gst_validate_report_set_master_report (GstValidateReport * report,
|
||||||
GstValidateReport * master_report)
|
GstValidateReport * master_report)
|
||||||
{
|
{
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
gboolean add_shadow_report = TRUE;
|
gboolean add_shadow_report = TRUE;
|
||||||
|
|
||||||
|
if (master_report->reporting_level >= GST_VALIDATE_REPORTING_LEVEL_MONITOR)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
report->master_report = master_report;
|
report->master_report = master_report;
|
||||||
|
|
||||||
GST_VALIDATE_REPORT_SHADOW_REPORTS_LOCK (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,
|
g_list_append (master_report->shadow_reports,
|
||||||
gst_validate_report_ref (report));
|
gst_validate_report_ref (report));
|
||||||
GST_VALIDATE_REPORT_SHADOW_REPORTS_UNLOCK (master_report);
|
GST_VALIDATE_REPORT_SHADOW_REPORTS_UNLOCK (master_report);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -225,7 +225,7 @@ void gst_validate_printf_valist (gpointer source,
|
||||||
const gchar * format,
|
const gchar * format,
|
||||||
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);
|
gboolean gst_validate_report_set_master_report(GstValidateReport *report, GstValidateReport *master_report);
|
||||||
void gst_validate_report_set_reporting_level (GstValidateReport *report, GstValidateReportingLevel level);
|
void gst_validate_report_set_reporting_level (GstValidateReport *report, GstValidateReportingLevel level);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
Loading…
Reference in a new issue