tests: rtprtx::test_push_forward_seq: fix race condition
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 15 Jan 2014 10:26:33 +0000 (11:26 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 21 Jan 2014 14:00:53 +0000 (15:00 +0100)
commit7011f98d7e9415fc9265654431f2d74051ff138f
treee0dbdcb8c0eb13870f3cb966aa2bdbc67384ae8c
parentc702e370911aaa77f92c23e8e0d9b2306cc1c4e0
tests: rtprtx::test_push_forward_seq: 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