From 888414ed1109721af11012bb4cf4216b485babab Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sat, 14 Mar 2015 12:24:53 +0000 Subject: [PATCH] camerabin: remove deprecated g_atomic function We depend on 2.32 already --- gst/camerabin2/gstcamerabin2.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index 5e8681f510..1b9d5d97b2 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -167,15 +167,9 @@ #include #include -#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", \