GNOME Bugzilla – Bug 534888
gst-python refcount error with gst_event_new_tag
Last modified: 2008-05-26 10:20:40 UTC
If i try to create a tag event from a python element i get a lot of warnings: GStreamer-CRITICAL **: gst_structure_free: assertion `structure->parent_refcount == NULL' failed My example code is: if ret == gst.FLOW_OK: t = gst.TagList () t['archive_status'] = str (self.array.current_status) ev = gst.event_new_tag (t) #pad = self.get_pad ('src') #pad.push_event (ev) return ret, data
The problem is that gst_event_new_tag takes ownership of the given taglist. The solution might be to make a copy of the given taglist in the bindings.
Created attachment 111551 [details] [review] override for gst_event_new_tag Proposed override, in the same spirit as the overrides for gst_event_new_custom and gst_event_new_navigation, which both have the same issue.
2008-05-26 Edward Hervey <edward.hervey@collabora.co.uk> * gst/gstevent.override: gst_event_new_tag takes ownership of the GstTagList given as argument, therefore make a copy before calling the C function. Fixes #534888