GNOME Bugzilla – Bug 774791
return value of ElementFactory.get_static_pad_templates should be "unowned"
Last modified: 2016-11-21 17:08:21 UTC
According to the C api, the return value is transfer none, and I run into a double/invalid free if I try to use the API
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElementFactory.html#gst-element-factory-get-static-pad-templates
Created attachment 340456 [details] [review] gstreamer-1.0: Make ElementFactory.get_static_pad_templates fully "unowned"
The .metadata was changed to make ElementFactory.get_static_pad_templates unowned with this patch: https://git.gnome.org/browse/vala/commit/vapi/metadata/Gst-1.0.metadata?id=871cf22610d7869afa90c64a014da9bcebcd620f after this bug report: https://bugzilla.gnome.org/show_bug.cgi?id=720694 Then it is changed to ElementFactory.get_static_pad_templates type="GLib.List<weak Gst.StaticPadTemplate?> with this commit: https://git.gnome.org/browse/vala/commit/vapi/metadata/Gst-1.0.metadata?id=6296d34707d0053919d9496b5cf6c50149fea702 Not sure why that would be.
Attachment 340456 [details] pushed as f91f13a - gstreamer-1.0: Make ElementFactory.get_static_pad_templates fully "unowned"