GNOME Bugzilla – Bug 754661
harness: Fix race for gst_harness_element_ref
Last modified: 2015-09-07 10:35:33 UTC
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. Also, the test uncovered another bug where it was not allowed to set the init function for user_data used in the stress test to NULL.
Created attachment 310785 [details] [review] harness: Allow-none for custom stress init func It should be allowed to not have a function to initialize the user data since it's often not necessary; it may already be initialized.
Created attachment 310786 [details] [review] 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.
commit ff9a78196c032588d75b99f6dfb74817bde196c2 Author: Stian Selnes <stian@pexip.com> Date: Wed Aug 5 10:07:50 2015 +0200 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 commit 615e5b01c6426e3e8cdb09bb56c962f3893bda6f Author: Stian Selnes <stian@pexip.com> Date: Wed Aug 5 09:59:39 2015 +0200 harness: Allow-none for custom stress init func It should be allowed to not have a function to initialize the user data since it's often not necessary; it may already be initialized. https://bugzilla.gnome.org/show_bug.cgi?id=754661