GNOME Bugzilla – Bug 449226
Incomplete ghostpads in xml session save
Last modified: 2007-06-27 09:34:16 UTC
Please describe the problem: Ghostpads are reported with parent and names attributes only, lacking peer and direction. Steps to reproduce: 1. gst-launch-0.10 -o foo.xml videotestsrc ! videoscale ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! ffenc_mpeg4 ! rtpmp4vpay send-config=true mtu=2048 pt=97 ssrc=123456 timestamp-offset=20619 seqnum-offset=44441 ! identity sync=true ! rtpbin rtcp-support=true localport=9424 destinations=172.16.2.27:9424; 3. Actual results: XML representation of the pipeline is missing information on the peers and direction of ghostpads ---8<--------------- <gst:pad> <gst:ghostpad> <gst:name>sink</gst:name> <gst:parent>rtpbin0</gst:parent> </gst:ghostpad> </gst:pad> <gst:children> <gst:element> ----8<---------------------- Expected results: The expected result would be something like this: ---8<--------------- <gst:pad> <gst:ghostpad> <gst:name>sink</gst:name> <gst:parent>rtpbin0</gst:parent> <gst:direction>sink</gst:direction> <gst:peer>identity0.src</gst:peer> </gst:ghostpad> </gst:pad> <gst:children> <gst:element> ----8<---------------------- Does this happen every time? Yes. Other information:
I have written a patch to complete de missing fields. See gstghostpad.c.session.xml.patch in attachments...
Created attachment 90288 [details] [review] Adds missing fields for ghostpads to XML pipeline descriptions
Patch by: Étienne Noreau-Hébert <etienne at deepunder dot org> * gst/gstghostpad.c: (gst_proxy_pad_save_thyself): Add peer and direction in the XML serialisation of ghostpads. Fixes #449226.