diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-06-12 10:59:28 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-06-12 12:41:59 +0200 |
commit | 245eb9d0f93fcfd563f307e103713073948898cf (patch) | |
tree | 5224dcb942b49cd50b3275e5e277a9a07b7c8b38 | |
parent | 3e978a46b4c88b2da93bf4a99c0b51cda1bac7c7 (diff) |
validate: print REPORTER->name when passed as source in validate_printf
-rw-r--r-- | validate/gst/validate/gst-validate-report.c | 4 |
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)) { |