[0.11] gstreamer: gstbufferpool: Use glib compat macros for atomic pointers
Edward Hervey
bilboed at kemper.freedesktop.org
Wed Oct 5 02:21:15 PDT 2011
Module: gstreamer
Branch: 0.11
Commit: 045fcd8b0a38b97d071de3e6c091c2bc9ab8d047
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=045fcd8b0a38b97d071de3e6c091c2bc9ab8d047
Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date: Wed Oct 5 11:20:37 2011 +0200
gstbufferpool: Use glib compat macros for atomic pointers
---
gst/gstbufferpool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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 <errno.h>
#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);
More information about the gstreamer-commits
mailing list