From 89d827dac8f1f2e77d28656226eeaf8e75ca6020 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sat, 12 Jul 2008 09:59:32 +0000 Subject: [PATCH] gst/gstdebugutils.c: Squeeze ghost-pad links and remove <> from classname labels to save more horizontal space. Original commit message from CVS: * gst/gstdebugutils.c: Squeeze ghost-pad links and remove <> from classname labels to save more horizontal space. --- ChangeLog | 6 ++++++ gst/gstdebugutils.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce74a7d..a0bc74a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-07-12 Stefan Kost + + * gst/gstdebugutils.c: + Squeeze ghost-pad links and remove <> from classname labels to save + more horizontal space. + 2008-07-11 Stefan Kost * gst/gstdebugutils.c: diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 051ff30..1d0463e 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -20,8 +20,8 @@ */ /* TODO: * edge [ constraint=false ]; - * edge [ minlen=0 ]; - * does not create spacial dependency + * this creates strange graphs ("minlen=0" is better) + * try puting src/sink ghostpads for each bin into invisible clusters */ #include "gst_private.h" @@ -280,7 +280,7 @@ debug_dump_element_pad_link (GstPad * pad, GstElement * element, target_element_name = ""; } /* src ghostpad relationship */ - fprintf (out, "%s%s_%s -> %s_%s [style=dashed]\n", spc, + fprintf (out, "%s%s_%s -> %s_%s [style=dashed, minlen=0]\n", spc, target_element_name, target_pad_name, element_name, pad_name); g_free (target_pad_name); @@ -305,7 +305,7 @@ debug_dump_element_pad_link (GstPad * pad, GstElement * element, target_element_name = ""; } /* sink ghostpad relationship */ - fprintf (out, "%s%s_%s -> %s_%s [style=dashed]\n", spc, + fprintf (out, "%s%s_%s -> %s_%s [style=dashed, minlen=0]\n", spc, peer_element_name, peer_pad_name, target_element_name, target_pad_name); /* FIXME: we are missing links from the proxy pad @@ -399,7 +399,7 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out, fprintf (out, "%s fontsize=\"8\";\n", spc); fprintf (out, "%s style=filled;\n", spc); fprintf (out, "%s color=black;\n\n", spc); - fprintf (out, "%s label=\"<%s>\\n%s%s%s\";\n", spc, + fprintf (out, "%s label=\"%s\\n%s%s%s\";\n", spc, G_OBJECT_TYPE_NAME (element), GST_OBJECT_NAME (element), (state_name ? state_name : ""), (param_name ? param_name : "") ); -- 2.7.4