gstobject: also remove the cast as this is causing the trouble

This commit is contained in:
Stefan Kost 2011-08-23 11:55:17 +02:00
parent df099959fd
commit febde0c19f

View file

@ -446,8 +446,7 @@ gst_object_replace (GstObject ** oldobj, GstObject * newobj)
g_object_ref (newobj); g_object_ref (newobj);
do { do {
oldptr = *oldobj; oldptr = *oldobj;
} while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE ((void *) oldobj, } while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE (oldobj, oldptr, newobj));
oldptr, newobj));
if (oldptr) if (oldptr)
g_object_unref (oldptr); g_object_unref (oldptr);
} }