From 245eb9d0f93fcfd563f307e103713073948898cf Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 12 Jun 2015 10:59:28 +0200 Subject: [PATCH] validate: print REPORTER->name when passed as source in validate_printf --- validate/gst/validate/gst-validate-report.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index e234a720a5..16b1bb884c 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -747,6 +747,10 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args) if (!has_parameters) g_string_append_printf (string, "\n\n No Parameters"); + } else if (GST_IS_VALIDATE_REPORTER (source) && + gst_validate_reporter_get_name (source)) { + g_string_printf (string, "\n%s --> ", + gst_validate_reporter_get_name (source)); } else if (GST_IS_OBJECT (source)) { g_string_printf (string, "\n%s --> ", GST_OBJECT_NAME (source)); } else if (G_IS_OBJECT (source)) {