gst/gstobject.h: Add cast to make compiler happy - refcount variable was a gint in...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 15 May 2006 08:16:09 +0000 (08:16 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 15 May 2006 08:16:09 +0000 (08:16 +0000)
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
gst/gstobject.h

index 359fa67..939f61d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 2bc8461..837fd19 100644 (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! */