tests: rtprtx::test_rtxreceive_data_reconstruction: fix race condition
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 15 Jan 2014 16:27:19 +0000 (17:27 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 21 Jan 2014 14:00:53 +0000 (15:00 +0100)
commit184553151da57dd6d760fdb1881a6b32046467c3
tree818d24d192d38c199c9f7cfeed3e3581b6782c15
parent7677aec2faa0844dd35c5d94445f0b9849b717b1
tests: rtprtx::test_rtxreceive_data_reconstruction: fix race condition

Now with rtprtxsend pushing rtx buffers from a different thread,
this is necessary to ensure that the result of the test is deterministic.

This code makes use of GstCheck's global GMutex and GCond that are
being used inside GstCheck's sink pad chain() function in order
to synchronize with it.
tests/check/elements/rtprtx.c