From 2db697154bb22123f45074aa28a3185f4344cb55 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 1 Mar 2004 12:10:16 +0000 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ gst/gstbuffer.c | 2 +- gst/gstdata.c | 2 +- gst/gstevent.c | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 891f8df748..948f35ff2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-03-01 Johan Dahlin + + * 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 * gst/gstbuffer.h: diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 698da47efd..cc0f52658e 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -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 diff --git a/gst/gstdata.c b/gst/gstdata.c index 57fa3bda18..09e893b4c3 100644 --- a/gst/gstdata.c +++ b/gst/gstdata.c @@ -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; } diff --git a/gst/gstevent.c b/gst/gstevent.c index e81db15446..da60da0b0d 100644 --- a/gst/gstevent.c +++ b/gst/gstevent.c @@ -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