summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Boxer <aaron.boxer@collabora.com>2019-04-01 09:53:19 -0400
committerTim-Philipp Müller <tim@centricular.com>2019-05-01 17:57:59 +0100
commit63a41324f12e74247acf2f15d7f9b968534c84e0 (patch)
treeab2f2c3fb7f57b19d740f04d8130074db2e8ebfa
parenta58bf5b5015a24ec4f2d7a1986c87b5427dea07b (diff)
downloadgstreamer-plugins-base-63a41324f12e74247acf2f15d7f9b968534c84e0.tar.gz
discoverer: fix a race bug in disco test
-rw-r--r--tests/check/libs/discoverer.c2
1 files changed, 1 insertions, 1 deletions
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);