GNOME Bugzilla – Bug 345496
No GstPadDirection in files created by GstXml
Last modified: 2006-10-10 14:47:52 UTC
I'm parsing a pipeline file created by GstXml to create a graphical image of the pipeline. But the XML file doesn't contain any information about the direction of the pads. This information would be very helpful since it conveys information about the data flow.
Created attachment 67750 [details] [review] proposed fix With this patch, the direction of the pad is added to the pad structure of the XML file: <gst:pad> <gst:name>src</gst:name> <gst:direction>source</gst:direction> <gst:peer>videoflip0.sink</gst:peer> </gst:pad>
Created attachment 67751 [details] XML file from a sample pipeline
Created attachment 67752 [details] Image of the sample pipeline This image shows the image generated by parsing the XML file. Without the pad direction, there are no arrowheads so the data flow is harder to figure out.
Patch by: Sebastien Cote <sebas642 at yahoo dot ca> * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_save_thyself): Update some docs. Write pad direction in XML output. Fixes #345496.