After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585137 - gst_xml_write_file() fails serialising GstStructure property
gst_xml_write_file() fails serialising GstStructure property
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal normal
: 0.10.24
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-08 10:33 UTC by Julien Isorce
Modified: 2009-06-16 07:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example to reproduce the problem (505 bytes, text/plain)
2009-06-08 10:35 UTC, Julien Isorce
Details

Description Julien Isorce 2009-06-08 10:33:58 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.
Comment 1 Julien Isorce 2009-06-08 10:35:24 UTC
Created attachment 136135 [details]
example to reproduce the problem
Comment 2 Tim-Philipp Müller 2009-06-15 20:18:45 UTC
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.
Comment 3 Tim-Philipp Müller 2009-06-16 07:56:18 UTC
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.