From 63a41324f12e74247acf2f15d7f9b968534c84e0 Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Mon, 1 Apr 2019 09:53:19 -0400 Subject: 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 cf0b4db12..3bb386791 100644 --- a/tests/check/libs/discoverer.c +++ b/tests/check/libs/discoverer.c @@ -360,7 +360,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); -- cgit v1.2.1