diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-07-06 12:09:31 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-07-06 12:10:09 +0100 |
commit | e10d54b8e24629cc518bfcd23683b4ef56800c0c (patch) | |
tree | c36f1019403fbd87d00a7cc558d7b0459f269327 | |
parent | b722d41d44b82437d0f87d537509bd7d535c5d76 (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.c | 1 |
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); |