summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-03-14 12:24:53 +0000
committerThiago Santos <thiagoss@osg.samsung.com>2015-03-14 18:29:28 +0000
commit888414ed1109721af11012bb4cf4216b485babab (patch)
tree4566c19af9c60e94835a16a2f093ff0e83a90212 /gst/camerabin2
parent5c20c2e2113ed8d11e829f5744284ff647d48aa0 (diff)
downloadgstreamer-plugins-bad-888414ed1109721af11012bb4cf4216b485babab.tar.gz
camerabin: remove deprecated g_atomic function
We depend on 2.32 already
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstcamerabin2.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index 5e8681f51..1b9d5d97b 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -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", \