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.
This commit is contained in:
Tim-Philipp Müller 2020-02-19 18:49:07 +00:00
parent 826230ba1b
commit 602b13c6c3

View file

@ -118,7 +118,8 @@ debug_dump_get_object_params (GObject * object,
/* skip some properties */ /* skip some properties */
if (!(property->flags & G_PARAM_READABLE)) if (!(property->flags & G_PARAM_READABLE))
continue; continue;
if (!strcmp (property->name, "name")) if (!strcmp (property->name, "name")
|| !strcmp (property->name, "parent"))
continue; continue;
if (ignored_propnames) if (ignored_propnames)
@ -230,8 +231,7 @@ debug_dump_pad (GstPad * pad, const gchar * color_name,
GstPadPresence presence; GstPadPresence presence;
gchar *pad_name, *param_name = NULL; gchar *pad_name, *param_name = NULL;
const gchar *style_name; const gchar *style_name;
static const char *const ignore_propnames[] = static const char *const ignore_propnames[] = { "direction", "template",
{ "parent", "direction", "template",
"caps", NULL "caps", NULL
}; };
const gchar *spc = MAKE_INDENT (indent); const gchar *spc = MAKE_INDENT (indent);