harness: Fix race for gst_harness_element_ref
authorStian Selnes <stian@pexip.com>
Wed, 5 Aug 2015 08:07:50 +0000 (10:07 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 7 Sep 2015 10:31:33 +0000 (11:31 +0100)
commitff9a78196c032588d75b99f6dfb74817bde196c2
tree01c1225b3099eb530f9674e66b6e3106843f4a1c
parent615e5b01c6426e3e8cdb09bb56c962f3893bda6f
harness: Fix race for gst_harness_element_ref

In order for gst_harness_new_full to be MT-safe the increase and
decrease of HARNESS_REF must be MT-safe. This allows for creating
multiple harnesses from different threads wrapping the same element.

https://bugzilla.gnome.org/show_bug.cgi?id=754661
libs/gst/check/gstharness.c
tests/check/libs/gstharness.c