tests: fix locking in gstpoll unit test

The mutex needs to be locked when g_cond_wait*() is
called.
This commit is contained in:
Tim-Philipp Müller 2014-07-06 12:09:31 +01:00
parent b722d41d44
commit e10d54b8e2

View file

@ -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);