[Bug 731350] New: Add gst_queue_array_new variant which takes a GDestroyNotify
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Jun 6 16:51:38 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=731350
GStreamer | gstreamer (core) | unspecified
Summary: Add gst_queue_array_new variant which takes a
GDestroyNotify
Classification: Platform
Product: GStreamer
Version: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: evan at coeus-group.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=278065)
View: https://bugzilla.gnome.org/attachment.cgi?id=278065
Review: https://bugzilla.gnome.org/review?bug=731350&attachment=278065
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.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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