mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
camerabin: remove deprecated g_atomic function
We depend on 2.32 already
This commit is contained in:
parent
5c20c2e211
commit
888414ed11
1 changed files with 1 additions and 7 deletions
|
@ -167,15 +167,9 @@
|
|||
#include <gst/pbutils/pbutils.h>
|
||||
#include <gst/glib-compat-private.h>
|
||||
|
||||
#if GLIB_CHECK_VERSION(2,29,6)
|
||||
#define gst_camerabin2_atomic_int_add g_atomic_int_add
|
||||
#else
|
||||
#define gst_camerabin2_atomic_int_add g_atomic_int_exchange_and_add
|
||||
#endif
|
||||
|
||||
#define GST_CAMERA_BIN2_PROCESSING_INC(c) \
|
||||
{ \
|
||||
gint bef = gst_camerabin2_atomic_int_add (&c->processing_counter, 1); \
|
||||
gint bef = g_atomic_int_add (&c->processing_counter, 1); \
|
||||
if (bef == 0) \
|
||||
g_object_notify (G_OBJECT (c), "idle"); \
|
||||
GST_DEBUG_OBJECT ((c), "Processing counter incremented to: %d", \
|
||||
|
|
Loading…
Reference in a new issue