From: Tim-Philipp Müller Date: Sun, 6 Jul 2014 11:09:31 +0000 (+0100) Subject: tests: fix locking in gstpoll unit test X-Git-Tag: 1.3.91~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e10d54b8e24629cc518bfcd23683b4ef56800c0c;p=platform%2Fupstream%2Fgstreamer.git tests: fix locking in gstpoll unit test The mutex needs to be locked when g_cond_wait*() is called. --- diff --git a/tests/check/gst/gstpoll.c b/tests/check/gst/gstpoll.c index 3357bf5..2fd756b 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);