mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
gst/gstobject.*: s/GstObject */gpointer/ for the arguments of those 2 functions.
Original commit message from CVS: * gst/gstobject.c: (gst_object_ref), (gst_object_unref): * gst/gstobject.h: s/GstObject */gpointer/ for the arguments of those 2 functions. Mimicing GObject here.
This commit is contained in:
parent
d503205ffb
commit
27c4315715
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-05-17 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
|
* gst/gstobject.c: (gst_object_ref), (gst_object_unref):
|
||||||
|
* gst/gstobject.h:
|
||||||
|
s/GstObject */gpointer/ for the arguments of those 2 functions.
|
||||||
|
Mimicing GObject here.
|
||||||
|
|
||||||
2005-05-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
2005-05-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
* gst/Makefile.am:
|
* gst/Makefile.am:
|
||||||
|
|
|
@ -218,14 +218,14 @@ gst_object_constructor (GType type, guint n_construct_properties,
|
||||||
* Returns: A pointer to the object
|
* Returns: A pointer to the object
|
||||||
*/
|
*/
|
||||||
GstObject *
|
GstObject *
|
||||||
gst_object_ref (GstObject * object)
|
gst_object_ref (gpointer object)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GST_IS_OBJECT (object), NULL);
|
g_return_val_if_fail (GST_IS_OBJECT (object), NULL);
|
||||||
|
|
||||||
GST_CAT_LOG_OBJECT (GST_CAT_REFCOUNTING, object, "ref %d->%d",
|
GST_CAT_LOG_OBJECT (GST_CAT_REFCOUNTING, object, "ref %d->%d",
|
||||||
G_OBJECT (object)->ref_count, G_OBJECT (object)->ref_count + 1);
|
G_OBJECT (object)->ref_count, G_OBJECT (object)->ref_count + 1);
|
||||||
|
|
||||||
g_object_ref (G_OBJECT (object));
|
g_object_ref (object);
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ gst_object_ref (GstObject * object)
|
||||||
* zero, destroy the object.
|
* zero, destroy the object.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_object_unref (GstObject * object)
|
gst_object_unref (gpointer object)
|
||||||
{
|
{
|
||||||
g_return_if_fail (GST_IS_OBJECT (object));
|
g_return_if_fail (GST_IS_OBJECT (object));
|
||||||
g_return_if_fail (G_OBJECT (object)->ref_count > 0);
|
g_return_if_fail (G_OBJECT (object)->ref_count > 0);
|
||||||
|
@ -245,7 +245,7 @@ gst_object_unref (GstObject * object)
|
||||||
GST_CAT_LOG_OBJECT (GST_CAT_REFCOUNTING, object, "unref %d->%d",
|
GST_CAT_LOG_OBJECT (GST_CAT_REFCOUNTING, object, "unref %d->%d",
|
||||||
G_OBJECT (object)->ref_count, G_OBJECT (object)->ref_count - 1);
|
G_OBJECT (object)->ref_count, G_OBJECT (object)->ref_count - 1);
|
||||||
|
|
||||||
g_object_unref (G_OBJECT (object));
|
g_object_unref (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -139,8 +139,8 @@ void gst_object_restore_thyself (GstObject *object, xmlNodePtr self);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* refcounting + life cycle */
|
/* refcounting + life cycle */
|
||||||
GstObject * gst_object_ref (GstObject *object);
|
GstObject * gst_object_ref (gpointer object);
|
||||||
void gst_object_unref (GstObject *object);
|
void gst_object_unref (gpointer object);
|
||||||
void gst_object_sink (GstObject *object);
|
void gst_object_sink (GstObject *object);
|
||||||
|
|
||||||
/* replace object pointer */
|
/* replace object pointer */
|
||||||
|
|
Loading…
Reference in a new issue