mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
parent
0778efcfde
commit
836081abee
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue