[gstreamer-bugs] [Bug 510301] New: GstStructure immutability problem when creating new C++ bindings

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Jan 17 16:51:45 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=510301

  GStreamer | gstreamer (core) | Ver: 0.10.15
           Summary: GstStructure immutability problem when creating new C++
                    bindings
           Product: GStreamer
           Version: 0.10.15
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: jaalburquerque at cox.net
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.19/2.20
   GNOME milestone: Unspecified


In trying to create new C++ bindings for gstreamer
(http://svn.gnome.org/svn/gnomemm/gstreamermm/trunk), I get the following two
warnings when creating a GstQuery:

(lt-oggplayer:7134): GStreamer-CRITICAL **: gst_structure_id_set_valist: 
assertion `IS_MUTABLE (structure)' failed

(lt-oggplayer:7134): GStreamer-CRITICAL **: gst_structure_id_set_valist: 
assertion `IS_MUTABLE (structure)' failed

We've bound quite a bit of gstreamer API and just completed GstQuery.  The
reason these warnings occur is that in the bindings we've created derived
classes for all the GstQuerys in the API and to parse the query (which is
always returned by the "creation" methods as a "smart pointer" to the base
class though the class is actually a derived one), the smart pointer needs to
be be cast as a pointer to a derived class.

The problem is that the GstQuery is referenced once on creation and a cast of
the smart pointer creates another smart pointer, referencing the GstQuery
again.  When the query is sent to the GstElement, the warnings appear.  I can
provide code snippets of how the warnings are generated if necessary and
explain where in our bindings they occurs.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=510301.




More information about the Gstreamer-bugs mailing list