From: Edward Hervey Date: Wed, 5 Oct 2011 09:20:37 +0000 (+0200) Subject: gstbufferpool: Use glib compat macros for atomic pointers X-Git-Tag: RELEASE-0.11.2~664 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=045fcd8b0a38b97d071de3e6c091c2bc9ab8d047;p=platform%2Fupstream%2Fgstreamer.git gstbufferpool: Use glib compat macros for atomic pointers --- diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index bb91167..0412837 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -27,6 +27,7 @@ */ #include "gst_private.h" +#include "glib-compat-private.h" #include #ifdef HAVE_UNISTD_H @@ -938,8 +939,7 @@ gst_buffer_pool_release_buffer (GstBufferPool * pool, GstBuffer * buffer) /* check that the buffer is ours, all buffers returned to the pool have the * pool member set to NULL and the pool refcount decreased */ - if (!g_atomic_pointer_compare_and_exchange ((gpointer *) & buffer->pool, - pool, NULL)) + if (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE (&buffer->pool, pool, NULL)) return; pclass = GST_BUFFER_POOL_GET_CLASS (pool);