GNOME Bugzilla – Bug 761931
harness: fix the race in blocking push mode
Last modified: 2016-02-12 14:08:45 UTC
Created attachment 320964 [details] [review] patch Depending on when gst_harness_pull was called - before the buffer reached gst_harness_chain or after we can get different behaviors of the test with enabled blocking push mode. The fix makes the behavior always the same. In pull function we get the buffer first, thus making sure gst_harness_chain waits for the signal, and emitting the signal after.
commit 06ae41e0b211402d3032762ad4788ae3eef06a97 Author: Mikhail Fludkov <misha@pexip.com> Date: Tue Aug 4 17:09:35 2015 +0200 harness: fix the race in blocking push mode Depending on when gst_harness_pull was called - before the buffer reached gst_harness_chain or after we can get different behaviors of the test with enabled blocking push mode. The fix makes the behavior always the same. In pull function we get the buffer first, thus making sure gst_harness_chain waits for the signal, and emitting the signal after. https://bugzilla.gnome.org/show_bug.cgi?id=761931