validate: Indent report details

This commit is contained in:
Thibault Saunier 2016-09-02 16:24:47 -03:00
parent 6e9c67238d
commit 61669bd042

View file

@ -867,8 +867,14 @@ gst_validate_report_print_detected_on (GstValidateReport * report)
void
gst_validate_report_print_details (GstValidateReport * report)
{
if (report->message)
gst_validate_printf (NULL, "%*s Details : %s\n", 12, "", report->message);
if (report->message) {
gint i;
gchar **lines = g_strsplit (report->message, "\n", -1);
gst_validate_printf (NULL, "%*s Details : %s\n", 12, "", lines[0]);
for (i = 1; lines[i]; i++)
gst_validate_printf (NULL, "%*s%s\n", 21, "", lines[i]);
}
}
void