GNOME Bugzilla – Bug 585137
gst_xml_write_file() fails serialising GstStructure property
Last modified: 2009-06-16 07:56:18 UTC
****steps: compile (gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) main.c -o main) and run the attached example (24 code lines). ****result: GStreamer-CRITICAL **: gst_structure_to_string: assertion `structure != NULL' failed GLib-CRITICAL **: g_strescape: assertion `source != NULL' failed ****other infos: No failure if I remove the "EXTRA_HEADERS" property of the souphttpsrc. So maybe something is wrong with this property or handled in a bad way.
Created attachment 136135 [details] example to reproduce the problem
This looks like a bug in the xml serialisation code (not allowing NULL for GstStructures or so), so moving to core. FWIW, the GstXML API is unloved if not unmaintained and known to be buggy and hence not really recommended for use.
This should hopefully fix it: commit 470e5612166777156ca3de26efb43db5aef81dd8 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Tue Jun 16 08:43:53 2009 +0100 gstxml: fix (de)serialisation of properties of type GstStructure souphttpsrc has a property of type GstStructure, which causes an assertion when serialising it to xml. Fixes #585137. Still, please don't use this API for anything serious.