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 *.
This commit is contained in:
Tim-Philipp Müller 2006-05-15 08:16:09 +00:00
parent 02587befa4
commit 1fa79bc05f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
* 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 <thomas at apestaart dot org>
* gst/parse/Makefile.am:

View file

@ -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! */