validate:reporter: Show report by branches when doing smart reporting

Meaning that instead of getting 1 "Detected on" line per monitor,
there will be one per "branch" like:

    Detected on <audioconvert1:sink, audioconvert1:src, audioresample1:sink, audioresample1:src, smart-adder-adder:sink_0, smart-adder-adder:src, smart-adder-capsfilter:sink, smart-adder-capsfilter:src, capsfilter2:sink, capsfilter2:src, tee1:sink, tee1:src_0>

Making it simpler to read and a bit less verbose.
This commit is contained in:
Thibault Saunier 2019-06-11 17:11:42 -04:00 committed by Thibault Saunier
parent 010e18862f
commit 314fd2b6de

View file

@ -1047,8 +1047,10 @@ gst_validate_report_set_master_report (GstValidateReport * report,
GList *tmp;
gboolean add_shadow_report = TRUE;
if (master_report->reporting_level >= GST_VALIDATE_SHOW_MONITOR)
if (master_report->reporting_level >= GST_VALIDATE_SHOW_MONITOR &&
master_report->reporting_level != GST_VALIDATE_SHOW_SMART) {
return FALSE;
}
report->master_report = master_report;