[gstreamer-bugs] [Bug 552778] New: add free_func in gstbuffer instances
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Sep 18 07:29:56 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=552778
GStreamer | gstreamer (core) | Ver: HEAD CVS
Summary: add free_func in gstbuffer instances
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: wingo at pobox.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Sometimes it's just too much effort to subclass GstBuffer, just to specify that
the free function should be free() instead of g_free().
So I would suggest that buffer instances could include free functions in
themselves. Patch attached.
The patch does not expand the size of GstBuffer, even if the reserved members
were reserved in some future version of GStreamer, as we could simply drop the
malloc_data field and keep the free_func function pointer.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=552778.
More information about the Gstreamer-bugs
mailing list