[vlc-commits] [Git][videolan/vlc][master] qt: fix race condition between RHI probing and UI launch

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Oct 13 16:53:41 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
59ad392d by Pierre Lamot at 2026-10-13T17:32:57+02:00
qt: fix race condition between RHI probing and UI launch

The default behavior for QEventLoopLocker is to quit the main loop when there are
no other QEventLoopLocker held (and no active windows).

While starting VLC we run a background task to probe RHI capabilities. This task
hold a QEventLoopLocker to avoid early destruction, but the task may end before
the first window is created, forcing the application to exit prematurly.

- - - - -


1 changed file:

- modules/gui/qt/qt.cpp


Changes:

=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -1445,6 +1445,7 @@ static void *Thread( void *obj )
 
     /* Last settings */
     app.setQuitOnLastWindowClosed( false );
+    app.setQuitLockEnabled( false );
 
     /* Loads and tries to apply the preferred QStyle */
 #define QTSTYLE_KEY "MainWindow/QtStyle"



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/59ad392d8cdbae8180af3266b8cb58b16ba58d5e

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/59ad392d8cdbae8180af3266b8cb58b16ba58d5e
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list