From febde0c19f86a992883be682ac4f319765193a20 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 23 Aug 2011 11:55:17 +0200 Subject: [PATCH] gstobject: also remove the cast as this is causing the trouble --- gst/gstobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/gstobject.c b/gst/gstobject.c index f5a7769d00..5f3aa78786 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -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); } -- GitLab