+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:
_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
if (!type)
type = g_boxed_type_register_static ("GstData",
- (GBoxedCopyFunc) gst_data_ref,
+ (GBoxedCopyFunc) gst_data_copy,
(GBoxedFreeFunc) gst_data_unref);
return type;
}
{
/* 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