mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gstbufferpool: Use glib compat macros for atomic pointers
This commit is contained in:
parent
738e421936
commit
045fcd8b0a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue