mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue