gst/: Use gst_data_copy, instead of ref, since some applications that uses GBoxed...
authorJohan Dahlin <johan@gnome.org>
Mon, 1 Mar 2004 12:10:16 +0000 (12:10 +0000)
committerJohan Dahlin <johan@gnome.org>
Mon, 1 Mar 2004 12:10:16 +0000 (12:10 +0000)
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
gst/gstbuffer.c
gst/gstdata.c
gst/gstevent.c

index 891f8df..948f35f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 698da47..cc0f526 100644 (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
index 57fa3bd..09e893b 100644 (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;
 }
index e81db15..da60da0 100644 (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