Commit df099959 authored by Stefan Kost's avatar Stefan Kost

gstobject: use the atomic macros to deal with the glib change in the impl.

parent ec6e452f
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment