summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-06-12 08:59:28 (GMT)
committerThibault Saunier <tsaunier@gnome.org>2015-06-12 10:41:59 (GMT)
commit245eb9d0f93fcfd563f307e103713073948898cf (patch)
tree5224dcb942b49cd50b3275e5e277a9a07b7c8b38
parent3e978a46b4c88b2da93bf4a99c0b51cda1bac7c7 (diff)
downloadgst-devtools-245eb9d0f93fcfd563f307e103713073948898cf.tar.gz
gst-devtools-245eb9d0f93fcfd563f307e103713073948898cf.tar.xz
validate: print REPORTER->name when passed as source in validate_printf
-rw-r--r--validate/gst/validate/gst-validate-report.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c
index e234a72..16b1bb8 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)) {