From: Stefan Kost Date: Tue, 12 May 2009 21:29:57 +0000 (+0300) Subject: debugutils: layout improvement X-Git-Tag: RELEASE-0.10.24~275 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82635ea2a795c5e33f700b05a63e8522454e61bd;p=platform%2Fupstream%2Fgstreamer.git debugutils: layout improvement dot does not take the head/tail labels into account. For unfixed caps they get quite large. Double the padding to make it sort of readable in more cases. Also make normal font bigger and caps-label font smaller to increase our luck. --- diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 9bfacf9b4b..fab8a7d941 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -441,8 +441,8 @@ debug_dump_element_pad_link (GstPad * pad, GstElement * element, } else if (media_src && media_sink) { /* dot has some issues with placement of head and taillabels, * we need an empty label to make space */ - fprintf (out, "%s%s_%s -> %s_%s [labeldistance=\"5\", labelangle=\"0\", " - "label=\" \", " + fprintf (out, "%s%s_%s -> %s_%s [labeldistance=\"10\", labelangle=\"0\", " + "label=\" \", " "headlabel=\"%s\", taillabel=\"%s\"]\n", spc, element_name, pad_name, peer_element_name, peer_pad_name, media_src, media_sink); @@ -650,13 +650,13 @@ _gst_debug_bin_to_dot_file (GstBin * bin, GstDebugGraphDetails details, "digraph pipeline {\n" " rankdir=LR;\n" " fontname=\"sans\";\n" - " fontsize=\"8\";\n" + " fontsize=\"10\";\n" " labelloc=t;\n" " nodesep=.1;\n" " ranksep=.2;\n" " label=\"<%s>\\n%s%s%s\";\n" - " node [style=filled, shape=box, fontsize=\"7\", fontname=\"sans\", margin=\"0.0,0.0\"];\n" - " edge [labelfontsize=\"7\", fontsize=\"7\", fontname=\"monospace\"];\n" + " node [style=filled, shape=box, fontsize=\"9\", fontname=\"sans\", margin=\"0.0,0.0\"];\n" + " edge [labelfontsize=\"6\", fontsize=\"9\", fontname=\"monospace\"];\n" "\n", G_OBJECT_TYPE_NAME (bin), GST_OBJECT_NAME (bin), (state_name ? state_name : ""), (param_name ? param_name : "") );