Commit 2db69715 authored by Johan Dahlin's avatar Johan Dahlin

gst/: Use gst_data_copy, instead of ref, since some applications that uses...

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.
parent b4450adf
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:
......
......@@ -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
......
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment