mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
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:
parent
826230ba1b
commit
602b13c6c3
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue