debugutils: skip "parent" property for elements when dumping pipeline graph
authorTim-Philipp Müller <tim@centricular.com>
Wed, 19 Feb 2020 18:49:07 +0000 (18:49 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 19 Feb 2020 19:01:25 +0000 (19:01 +0000)
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

index c679744d8029b7bb8d2bdb8f87e38dac22b2a45a..b9a6000e346c1c4f0e30e828ef4e30e1a3c5bc97 100644 (file)
@@ -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);