[Bug 779668] GST_DEBUG_BIN_TO_DOT: creates invalid .dot file when GstStructure parameter contains string with "@"

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 30 14:37:29 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=779668

--- Comment #6 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> ---
I went back to this, and built a special escaping function which escaped only
", as the documentation dictates.

However, that doesn't quite work, since escaping only " prevents properly
escaping this: \"

The first character is \, which stays unchanged as per dot docs. The second is
a ", so is escaped as \". So the result is \\".

Now, xdot chokes on this:

 label="GstCapsFilter\ncapsfilter0\n[0]\nparent=(GstPipeline)
pipeline\ncaps=application/x-rtp-source-sdes,
cname=(string)\\"user2341\\@dqw\\"";

xdot gives:

Error: <stdin>: syntax error in line 23 near '\'

The label=... line seems well formed to me if only " gets escaped.

I guess I could go find out in xdot's source what it does now.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list