mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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:
parent
d1d404912e
commit
571f119fea
1 changed files with 2 additions and 1 deletions
|
@ -894,7 +894,8 @@ test_seek (const gchar * range, const gchar * speed, const gchar * scale,
|
|||
gst_rtsp_message_unset (&request);
|
||||
|
||||
g_mutex_lock (&check_mutex);
|
||||
g_cond_wait (&check_cond, &check_mutex);
|
||||
while (!terminal_frame || !received_rtcp)
|
||||
g_cond_wait (&check_cond, &check_mutex);
|
||||
g_mutex_unlock (&check_mutex);
|
||||
|
||||
send_teardown (client);
|
||||
|
|
Loading…
Reference in a new issue