See #651514 for details.
adder = GST_LIVE_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);
GST_ERROR_OBJECT (mux, "Not our template");
return NULL;
}
-
+#if GLIB_CHECK_VERSION(2,29,5)
+ pad_number = g_atomic_int_add ((gint *) & mux->n_pads, 1);
+#else
pad_number = g_atomic_int_exchange_and_add ((gint *) & mux->n_pads, 1);
+#endif
name = gst_mxf_mux_create_pad_name (templ, pad_number);
GST_DEBUG_OBJECT (mux, "Creating pad '%s'", name);
goto could_not_add_sink;
else
/* increment pad counter */
+#if GLIB_CHECK_VERSION(2,29,5)
+ padcount = g_atomic_int_add (&ssim->padcount, 1);
+#else
padcount = g_atomic_int_exchange_and_add (&ssim->padcount, 1);
+#endif
if (num >= 0) {
GstSSimOutputContext *c;