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.
This commit is contained in:
Stefan Kost 2008-07-12 09:59:32 +00:00
parent a7c2db4aae
commit 89d827dac8
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2008-07-12 Stefan Kost <ensonic@users.sf.net>
* gst/gstdebugutils.c:
Squeeze ghost-pad links and remove <> from classname labels to save
more horizontal space.
2008-07-11 Stefan Kost <ensonic@users.sf.net> 2008-07-11 Stefan Kost <ensonic@users.sf.net>
* gst/gstdebugutils.c: * gst/gstdebugutils.c:

View file

@ -20,8 +20,8 @@
*/ */
/* TODO: /* TODO:
* edge [ constraint=false ]; * edge [ constraint=false ];
* edge [ minlen=0 ]; * this creates strange graphs ("minlen=0" is better)
* does not create spacial dependency * try puting src/sink ghostpads for each bin into invisible clusters
*/ */
#include "gst_private.h" #include "gst_private.h"
@ -280,7 +280,7 @@ debug_dump_element_pad_link (GstPad * pad, GstElement * element,
target_element_name = ""; target_element_name = "";
} }
/* src ghostpad relationship */ /* 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); target_element_name, target_pad_name, element_name, pad_name);
g_free (target_pad_name); g_free (target_pad_name);
@ -305,7 +305,7 @@ debug_dump_element_pad_link (GstPad * pad, GstElement * element,
target_element_name = ""; target_element_name = "";
} }
/* sink ghostpad relationship */ /* 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, peer_element_name, peer_pad_name,
target_element_name, target_pad_name); target_element_name, target_pad_name);
/* FIXME: we are missing links from the proxy pad /* 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 fontsize=\"8\";\n", spc);
fprintf (out, "%s style=filled;\n", spc); fprintf (out, "%s style=filled;\n", spc);
fprintf (out, "%s color=black;\n\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), G_OBJECT_TYPE_NAME (element), GST_OBJECT_NAME (element),
(state_name ? state_name : ""), (param_name ? param_name : "") (state_name ? state_name : ""), (param_name ? param_name : "")
); );