[Bug 736896] [REGRESSION] pygobject 3.13 now copies the GstStructure when getting them from a GstCaps, making it impossible to properly modify structures from caps in place.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Apr 16 07:30:33 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=736896

--- Comment #29 from Christoph Reiter (lazka) <reiter.christoph at gmail.com> ---
Regarding the owner object:

If we'd have some notion of an "owner object" that might work, but something
like that doesn't exist in GI afaik.

You could emulate it by having a proxy buffer object which takes a ref on the
owner and has methods which allow modifying the buffer.

proxy = object.get_proxy_buf()
proxy.change() # proxy has a ref on object internally and
               # has just a pointer to the real buffer
buf = proxy.get_buf()

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list