discoverer: fix a race bug in disco test
authorAaron Boxer <aaron.boxer@collabora.com>
Mon, 1 Apr 2019 13:53:19 +0000 (09:53 -0400)
committerAaron Boxer <boxerab@gmail.com>
Mon, 1 Apr 2019 18:35:06 +0000 (18:35 +0000)
tests/check/libs/discoverer.c

index 7732e64..5e9e81d 100644 (file)
@@ -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);