gst/gstbuffer.h (GST_BUFFER_FREE_FUNC): New API, a free function that will be called...
authorAndy Wingo <wingo@pobox.com>
Mon, 6 Oct 2008 18:01:42 +0000 (18:01 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 6 Oct 2008 18:01:42 +0000 (18:01 +0000)
commit267d0ba8f3575e801414ae7dce20a3640af8c6d8
treef36fb41fca7c1cda943ccfb2f0ae1c6526c2c9eb
parentf7ae133fec0842cc721555baa2f7e24b5b49bdb3
gst/gstbuffer.h (GST_BUFFER_FREE_FUNC): New API, a free function that will be called on the malloc_data to free it. B...

Original commit message from CVS:
2008-10-06  Andy Wingo  <wingo@pobox.com>

* gst/gstbuffer.h (GST_BUFFER_FREE_FUNC): New API, a free function
that will be called on the malloc_data to free it. Basically a way
to avoid subclassing when all you need is a different free
function, i.e. free() instead of g_free().

* gst/gstbuffer.c (gst_buffer_finalize): Free malloc_data via
calling the free function.
(gst_buffer_init): Initialize the free function to g_free.
gst/gstbuffer.c
gst/gstbuffer.h