tests: fix locking in gstpoll unit test
The mutex needs to be locked when g_cond_wait*() is called.
This commit is contained in:
parent
b722d41d44
commit
e10d54b8e2
@ -275,6 +275,7 @@ delayed_control (gpointer data)
|
||||
gst_poll_fd_ctl_write (set, &fd, TRUE);
|
||||
gst_poll_restart (set);
|
||||
|
||||
g_mutex_lock (&mutex);
|
||||
THREAD_SYNCHRONIZE ();
|
||||
|
||||
g_usleep (500000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user