mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
gst/gstbuffer.h: remove gst_buffer_free, use gst_data_unref
Original commit message from CVS: 2004-02-27 Benjamin Otte <otte@gnome.org> * gst/gstbuffer.h: remove gst_buffer_free, use gst_data_unref * gst/gstdata.c: (gst_data_get_type): use refcounting in GstData GBoxed registration * gst/gstdata.h: remove gst_data_free, use gst_data_unref
This commit is contained in:
parent
730dd21ce5
commit
88ba7f4999
4 changed files with 11 additions and 21 deletions
|
@ -1,3 +1,12 @@
|
|||
2004-02-27 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/gstbuffer.h:
|
||||
remove gst_buffer_free, use gst_data_unref
|
||||
* gst/gstdata.c: (gst_data_get_type):
|
||||
use refcounting in GstData GBoxed registration
|
||||
* gst/gstdata.h:
|
||||
remove gst_data_free, use gst_data_unref
|
||||
|
||||
2004-02-27 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gst/gstdata.c (gst_data_get_type): New function, register
|
||||
|
|
|
@ -132,7 +132,6 @@ void gst_buffer_stamp (GstBuffer *dest, const GstBuffer *src);
|
|||
#define gst_buffer_copy(buf) GST_BUFFER (gst_data_copy (GST_DATA (buf)))
|
||||
#define gst_buffer_is_writable(buf) gst_data_is_writable (GST_DATA (buf))
|
||||
#define gst_buffer_copy_on_write(buf) GST_BUFFER (gst_data_copy_on_write (GST_DATA (buf)))
|
||||
#define gst_buffer_free(buf) gst_data_free (GST_DATA (buf))
|
||||
|
||||
/* creating a subbuffer */
|
||||
GstBuffer* gst_buffer_create_sub (GstBuffer *parent, guint offset, guint size);
|
||||
|
|
|
@ -34,8 +34,8 @@ gst_data_get_type (void)
|
|||
|
||||
if (!type)
|
||||
type = g_boxed_type_register_static ("GstData",
|
||||
(GBoxedCopyFunc) gst_data_copy,
|
||||
(GBoxedFreeFunc) gst_data_free);
|
||||
(GBoxedCopyFunc) gst_data_ref,
|
||||
(GBoxedFreeFunc) gst_data_unref);
|
||||
return type;
|
||||
}
|
||||
|
||||
|
@ -168,23 +168,6 @@ gst_data_copy_on_write (GstData *data)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_data_free:
|
||||
* @data: a #GstData to free
|
||||
*
|
||||
* Frees the given #GstData. This function will call the custom free function
|
||||
* provided by the subclass.
|
||||
*/
|
||||
void
|
||||
gst_data_free (GstData *data)
|
||||
{
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
if (data->free)
|
||||
data->free (data);
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_data_ref:
|
||||
* @data: a #GstData to reference
|
||||
|
|
|
@ -92,7 +92,6 @@ void gst_data_copy_into (const GstData *data, GstData *target);
|
|||
GstData* gst_data_copy (const GstData *data);
|
||||
gboolean gst_data_is_writable (GstData *data);
|
||||
GstData* gst_data_copy_on_write (GstData *data);
|
||||
void gst_data_free (GstData *data);
|
||||
|
||||
/* reference counting */
|
||||
GstData* gst_data_ref (GstData* data);
|
||||
|
|
Loading…
Reference in a new issue