[vlc-commits] [Git][videolan/vlc][master] qt: remove the timeout in `CompositorDirectComposition::setupVoutWindow()`

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Nov 23 14:55:10 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ac0844d7 by Fatih Uzunoglu at 2024-11-23T14:33:30+00:00
qt: remove the timeout in `CompositorDirectComposition::setupVoutWindow()`

When `m_setupStateCond.wait()` is called, the scene graph has already started
to initialize itself. So, 2.5 seconds waiting time was considered to be fair.

2.5 seconds were enough for Nvidia and VirtualBox drivers. However, it turns
out that AMD needs more time.

This is mainly relevant when the application starts with a video.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/compositor_dcomp.cpp


Changes:

=====================================
modules/gui/qt/maininterface/compositor_dcomp.cpp
=====================================
@@ -327,7 +327,7 @@ bool CompositorDirectComposition::setupVoutWindow(vlc_window_t *p_wnd, VoutDestr
         QMutexLocker lock(&m_setupStateLock);
         while (m_setupState == SetupState::Uninitialized)
         {
-            const bool ret = m_setupStateCond.wait(&m_setupStateLock, QDeadlineTimer(2500));
+            const bool ret = m_setupStateCond.wait(&m_setupStateLock);
             if (!ret)
                 return false;
         }



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ac0844d7c686ac1c65d1b8217025018d41d99f94
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list