From df099959fd2a12ed09b1d070fdab796c7acc6084 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 23 Aug 2011 11:41:02 +0200 Subject: [PATCH] gstobject: use the atomic macros to deal with the glib change in the impl. --- gst/gstobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstobject.c b/gst/gstobject.c index 8efadeb4cd..f5a7769d00 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -84,6 +84,7 @@ */ #include "gst_private.h" +#include "glib-compat-private.h" #include "gstobject.h" #include "gstmarshal.h" @@ -445,7 +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, + } while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE ((void *) oldobj, oldptr, newobj)); if (oldptr) g_object_unref (oldptr);