gst/: Use gst_data_copy, instead of ref, since some applications that uses GBoxed routines depends on a function that...

Original commit message from CVS:
* gst/gstbuffer.c (_gst_buffer_initialize):
* gst/gstdata.c (gst_data_get_type):
* gst/gstevent.c (_gst_event_initialize): Use gst_data_copy,
instead of ref, since some applications that uses GBoxed
routines depends on a function that actually returns a copy.
This commit is contained in:
Johan Dahlin 2004-03-01 12:10:16 +00:00
parent b4450adfec
commit 2db697154b
4 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2004-03-01 Johan Dahlin <johan@gnome.org>
* gst/gstbuffer.c (_gst_buffer_initialize):
* gst/gstdata.c (gst_data_get_type):
* gst/gstevent.c (_gst_event_initialize): Use gst_data_copy,
instead of ref, since some applications that uses GBoxed
routines depends on a function that actually returns a copy.
2004-02-27 Benjamin Otte <otte@gnome.org>
* gst/gstbuffer.h:

View file

@ -43,7 +43,7 @@ void
_gst_buffer_initialize (void)
{
_gst_buffer_type = g_boxed_type_register_static ("GstBuffer",
(GBoxedCopyFunc) gst_data_ref,
(GBoxedCopyFunc) gst_data_copy,
(GBoxedFreeFunc) gst_data_unref);
#ifndef GST_DISABLE_TRACE

View file

@ -34,7 +34,7 @@ gst_data_get_type (void)
if (!type)
type = g_boxed_type_register_static ("GstData",
(GBoxedCopyFunc) gst_data_ref,
(GBoxedCopyFunc) gst_data_copy,
(GBoxedFreeFunc) gst_data_unref);
return type;
}

View file

@ -48,7 +48,7 @@ _gst_event_initialize (void)
{
/* register the type */
_gst_event_type = g_boxed_type_register_static ("GstEvent",
(GBoxedCopyFunc) gst_data_ref,
(GBoxedCopyFunc) gst_data_copy,
(GBoxedFreeFunc) gst_data_unref);
#ifndef GST_DISABLE_TRACE