wpe: initialize threading.ready before reading it

Fix Valgrind warning.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7377>
This commit is contained in:
Guillaume Desmottes 2024-09-24 13:31:34 +02:00
parent 4670e1c809
commit 7e3f9df9a5

View file

@ -73,6 +73,7 @@ GstWPEContextThread::GstWPEContextThread()
{ {
g_mutex_init(&threading.mutex); g_mutex_init(&threading.mutex);
g_cond_init(&threading.cond); g_cond_init(&threading.cond);
threading.ready = FALSE;
{ {
GMutexHolder lock(threading.mutex); GMutexHolder lock(threading.mutex);