GNOME Bugzilla – Bug 549450
caps.append_structure() gives warnings if structure is non-writable
Last modified: 2008-08-26 15:58:24 UTC
#!/usr/bin/python import gobject gobject.threads_init() import gst c = gst.Caps('foo/bar') for s in c: c2 = gst.Caps() c2.append_structure(s) gives a: (foo.py:31165): GStreamer-CRITICAL **: gst_caps_append_structure: assertion `structure->parent_refcount == NULL' failed warning. You could argue that it's the caller's responsibility to make sure the structure is writable and all, just like in C, but I think this is python and it should Just Work, no?
2008-08-26 Edward Hervey <edward.hervey@collabora.co.uk> * gst/gstcaps.override: Override gst_caps_append_structure() and make a copy of the structure given as argument. Fixes #549450