summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-07-06 12:09:31 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-07-06 12:10:09 +0100
commite10d54b8e24629cc518bfcd23683b4ef56800c0c (patch)
treec36f1019403fbd87d00a7cc558d7b0459f269327
parentb722d41d44b82437d0f87d537509bd7d535c5d76 (diff)
tests: fix locking in gstpoll unit test
The mutex needs to be locked when g_cond_wait*() is called.
-rw-r--r--tests/check/gst/gstpoll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/gst/gstpoll.c b/tests/check/gst/gstpoll.c
index 3357bf50c..2fd756ba7 100644
--- a/tests/check/gst/gstpoll.c
+++ b/tests/check/gst/gstpoll.c
@@ -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);