From 602b13c6c3bf8b6d862ee88930fabc93986b0da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 19 Feb 2020 18:49:07 +0000 Subject: [PATCH] debugutils: skip "parent" property for elements when dumping pipeline graph Seems unnecessary to print the parent name for every element in the pipeline graph, it's clear from the graph what the parent element is and it's hard to imagine a case where this is useful info rather than just distracting spam. So far this was only done for pads, but we should just do it for everything. --- gst/gstdebugutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index c679744d80..b9a6000e34 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -118,7 +118,8 @@ debug_dump_get_object_params (GObject * object, /* skip some properties */ if (!(property->flags & G_PARAM_READABLE)) continue; - if (!strcmp (property->name, "name")) + if (!strcmp (property->name, "name") + || !strcmp (property->name, "parent")) continue; if (ignored_propnames) @@ -230,8 +231,7 @@ debug_dump_pad (GstPad * pad, const gchar * color_name, GstPadPresence presence; gchar *pad_name, *param_name = NULL; const gchar *style_name; - static const char *const ignore_propnames[] = - { "parent", "direction", "template", + static const char *const ignore_propnames[] = { "direction", "template", "caps", NULL }; const gchar *spc = MAKE_INDENT (indent);