tests: udpsrc: ensure test won't timeout if the buffers are already received
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 25 Aug 2017 11:59:06 +0000 (14:59 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 16:08:38 +0000 (16:08 +0000)
commitea7d2a0257ff344b3e2a53738890efc5efaebef2
treed02f7269810eb3d9ed4b7774e59662d33eaea214
parent45c82ee79823dc7ee3db691ac23cf325c0091756
tests: udpsrc: ensure test won't timeout if the buffers are already received

Sometimes all the buffers are received before the time we lock the
check_mutex, in which case g_cond_wait will wait forever for another
one. Just check if this is the case before waiting.

https://bugzilla.gnome.org/attachment.cgi?id=358397
tests/check/elements/udpsrc.c