From 6146d8c62270aa43e00a9e3653fe68ba16e794ae Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Mon, 1 Apr 2019 09:53:19 -0400 Subject: [PATCH] discoverer: fix a race bug in disco test --- tests/check/libs/discoverer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check/libs/discoverer.c b/tests/check/libs/discoverer.c index 7732e64d9e..5e9e81d8c8 100644 --- a/tests/check/libs/discoverer.c +++ b/tests/check/libs/discoverer.c @@ -362,7 +362,7 @@ GST_START_TEST (test_disco_async_custom_context) (GThreadFunc) custom_context_thread_func, &data); g_mutex_lock (&data.lock); - while (data.finish) + while (!data.finish) g_cond_wait (&data.cond, &data.lock); g_mutex_unlock (&data.lock);