[gstreamer-bugs] [Bug 574484] New: [patch] Make caps in DOT debug graphs more readable

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Mar 7 08:11:39 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=574484

  GStreamer | gstreamer (core) | Ver: git
           Summary: [patch] Make caps in DOT debug graphs more readable
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Keywords: usability
          Severity: minor
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: laszlok2 at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.23/2.24
   GNOME milestone: Unspecified


When DEBUG_BIN_TO_DOT_FILE() is used with DEBUG_GRAPH_SHOW_CAPS_DETAILS, the
caps are put in the DOT file by simply taking the to_string() of the caps and
replacing ',' with '\n'. This is a problem because commas aren't only present
between caps field name but also inside values such as { 1234, 4321 }.

When the caps have not been negotiated and you are trying to figure out why by
looking at the caps in the DOT file you will see this terribly difficult to
read block of text:

    audio/x-raw-float
      rate=(int)[ 1
      2147483647 ]
    channels=(int)[ 1
      2147483647 ]
  endianness=(int) { 1234
         4321 }
width=(int)64; audio/x-raw-float
    rate=(int)[ 1
      2147483647 ]
    channels=(int)[ 1
      2147483647 ]
  endianness=(int) { 1234
        4321 }
    width=(int)32;


You will also notice that none of the lines start at the same place because the
text is centred.

My patch changes the font to monospace (so we can make things line up like in
the terminal), and then outputs the caps in the same style as gst-inspect-0.10
does. The same caps above will now appear like this in the DOT file:

audio/x-raw-float
             rate: [ 1, 2147483647 ]
         channels: [ 1, 2147483647 ]
       endianness: { 1234, 4321 }
            width: 64
audio/x-raw-float
             rate: [ 1, 2147483647 ]
         channels: [ 1, 2147483647 ]
       endianness: { 1234, 4321 }
            width: 32


Other information:


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=574484.




More information about the Gstreamer-bugs mailing list