GNOME Bugzilla – Bug 450117
[PATCH] gst.event_new_custom needs to copy structure as C method assumes ownership of structure
Last modified: 2007-07-09 19:31:17 UTC
gst.event_new_custom needs to copy structure as C method assumes ownership of structure. Structures have no refcount so a copy is required. Python will garbage collect the structure passed to the method after it goes out of scope sow ithout this patch, get criticals and sometimes segfaults when it does the destruction of the structure.
Created attachment 90465 [details] [review]
override for event_new_custom
It was also wrong for gst.event_new_navigation().
2007-07-09 Edward Hervey <firstname.lastname@example.org>
Patch by: Zaheer Abbas Merali <email@example.com>
Copy the GstStructure given as argument to gst_event_new_custom
and gst_event_new_navigation, else it would be freed when the python
object wrapping that structure goes out of scope.