discoverer: fix a race bug in disco test
This commit is contained in:
parent
ee077a1cb3
commit
6146d8c622
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user