[vlc-commits] direct3d11: use SleepEx directly instead of vlc_tick_sleep

Steve Lhomme git at videolan.org
Tue Aug 18 13:19:11 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 18 13:17:46 2020 +0200| [07f1585636db72929d0c0701e0e040cb3a527ee6] | committer: Steve Lhomme

direct3d11: use SleepEx directly instead of vlc_tick_sleep

The Linux check on valid on timer validity doesn't apply here.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07f1585636db72929d0c0701e0e040cb3a527ee6
---

 modules/video_output/win32/direct3d11.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 3da8c32b23..299d1140b3 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -666,9 +666,8 @@ static void PreparePicture(vout_display_t *vd, picture_t *picture, subpicture_t
         while (S_FALSE == ID3D11DeviceContext_GetData(sys->d3d_dev->d3dcontext,
                                                       sys->prepareWait, NULL, 0, 0))
         {
-            const vlc_tick_t render_wait = VLC_TICK_FROM_MS(2);
             d3d11_device_unlock( sys->d3d_dev );
-            vlc_tick_sleep(render_wait);
+            SleepEx(2, TRUE);
             d3d11_device_lock( sys->d3d_dev );
         }
     }



More information about the vlc-commits mailing list