mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
b4450adfec
commit
2db697154b
4 changed files with 11 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue