Commit 836081ab authored by David Schleef's avatar David Schleef
Browse files

adder: Work around changes in g_atomic API

See #651514 for details.
parent 0778efcf
......@@ -943,7 +943,11 @@ gst_adder_request_new_pad (GstElement * element, GstPadTemplate * templ,
adder = GST_ADDER (element);
/* increment pad counter */
#if GLIB_CHECK_VERSION(2,29,5)
padcount = g_atomic_int_add (&adder->padcount, 1);
#else
padcount = g_atomic_int_exchange_and_add (&adder->padcount, 1);
#endif
name = g_strdup_printf ("sink%d", padcount);
newpad = gst_pad_new_from_template (templ, name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment