mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +00:00
discoverer: fix a race bug in disco test
This commit is contained in:
parent
ee077a1cb3
commit
6146d8c622
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ GST_START_TEST (test_disco_async_custom_context)
|
||||||
(GThreadFunc) custom_context_thread_func, &data);
|
(GThreadFunc) custom_context_thread_func, &data);
|
||||||
|
|
||||||
g_mutex_lock (&data.lock);
|
g_mutex_lock (&data.lock);
|
||||||
while (data.finish)
|
while (!data.finish)
|
||||||
g_cond_wait (&data.cond, &data.lock);
|
g_cond_wait (&data.cond, &data.lock);
|
||||||
g_mutex_unlock (&data.lock);
|
g_mutex_unlock (&data.lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue