onvif tests: use g_cond_wait() correctly

g_cond_wait() has to be called in a loop until required conditions
are met

Fixes #71
This commit is contained in:
Mathieu Duponchelle 2019-07-15 17:06:42 +02:00
parent d1d404912e
commit 571f119fea

View file

@ -894,6 +894,7 @@ test_seek (const gchar * range, const gchar * speed, const gchar * scale,
gst_rtsp_message_unset (&request);
g_mutex_lock (&check_mutex);
while (!terminal_frame || !received_rtcp)
g_cond_wait (&check_cond, &check_mutex);
g_mutex_unlock (&check_mutex);