GNOME Bugzilla – Bug 731350
Add gst_queue_array_new variant which takes a GDestroyNotify
Last modified: 2014-06-28 08:30:49 UTC
Created attachment 278065 [details] [review] queuearray: add gst_queue_array_new_with_free_func GstQueueArray is currently of limited use because it's not really possible for it to hold ownership of pointers it contains--if gst_queue_array_free is called while the queue is not empty the contents are leaked. I don't know that GstQueueArray can ever really be usable from most GObject Introspection consumers (see bug #639908), but we could turn it into a pretty nice generic in Vala if you added something like GstQueueArray * gst_queue_array_new_with_free_func (guint initial_size, GDestroyNotify element_free); The GDestroyNotify can be stored in the GstQueueArray struct (it's private, so no API/ABI break) and called if necessary in gst_queue_array_free.
Comment on attachment 278065 [details] [review] queuearray: add gst_queue_array_new_with_free_func This API is mostly useless for other languages. They have their own data structures. We should just hide it from introspection.
commit 0d5177b5fe12a130fbb96be8b7ada82e81500f84 Author: Sebastian Dröge <sebastian@centricular.com> Date: Thu Jun 26 19:30:52 2014 +0200 queuearray: Hide from bindings Other languages have their own data structures that are more convenient to use. https://bugzilla.gnome.org/show_bug.cgi?id=731350