gstobject: also remove the cast as this is causing the trouble
authorStefan Kost <ensonic@users.sf.net>
Tue, 23 Aug 2011 09:55:17 +0000 (11:55 +0200)
committerStefan Kost <ensonic@users.sf.net>
Tue, 23 Aug 2011 09:55:17 +0000 (11:55 +0200)
gst/gstobject.c

index f5a7769d00f5be710db506c6a88e606fc3abb138..5f3aa787864dd94a2f39e6cb9643fdac7b688c12 100644 (file)
@@ -446,8 +446,7 @@ gst_object_replace (GstObject ** oldobj, GstObject * newobj)
     g_object_ref (newobj);
   do {
     oldptr = *oldobj;
-  } while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE ((void *) oldobj,
-          oldptr, newobj));
+  } while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE (oldobj, oldptr, newobj));
   if (oldptr)
     g_object_unref (oldptr);
 }