From 1fa79bc05f5a26c93cb121ea4695f30c19ac4b9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 15 May 2006 08:16:09 +0000 Subject: [PATCH] gst/gstobject.h: Add cast to make compiler happy - refcount variable was a gint in GstObject but is a guint in GObjec... Original commit message from CVS: * gst/gstobject.h: Add cast to make compiler happy - refcount variable was a gint in GstObject but is a guint in GObject and g_atomic_int_get() wants a gint *. --- ChangeLog | 7 +++++++ gst/gstobject.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 359fa67..939f61d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-05-15 Tim-Philipp Müller + + * gst/gstobject.h: + Add cast to make compiler happy - refcount variable was a gint + in GstObject but is a guint in GObject and g_atomic_int_get() + wants a gint *. + 2006-05-15 Thomas Vander Stichele * gst/parse/Makefile.am: diff --git a/gst/gstobject.h b/gst/gstobject.h index 2bc8461..837fd19 100644 --- a/gst/gstobject.h +++ b/gst/gstobject.h @@ -75,7 +75,7 @@ typedef enum * * Get the reference count value of the object. */ -#define GST_OBJECT_REFCOUNT_VALUE(obj) g_atomic_int_get (&GST_OBJECT_REFCOUNT(obj)) +#define GST_OBJECT_REFCOUNT_VALUE(obj) g_atomic_int_get ((gint *) &GST_OBJECT_REFCOUNT(obj)) /* we do a GST_OBJECT_CAST to avoid type checking, better call these * function with a valid object! */ -- 2.7.4