[vlc-commits] vout:win32: use the hwndvideo to request the sensor permission

Steve Lhomme git at videolan.org
Mon Apr 1 12:03:28 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 27 09:45:00 2019 +0100| [d834c5fe58faab79bbb30e95ac7d72ba0328a779] | committer: Steve Lhomme

vout:win32: use the hwndvideo to request the sensor permission

It doesn't which one it is as long as it's tied to the video being played.

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

 modules/video_output/win32/direct3d11.c | 4 ++--
 modules/video_output/win32/glwin32.c    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 28e999ac4c..e57902bb4e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -501,8 +501,8 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     sys->sys.pf_GetPictureWidth  = GetPictureWidth;
     sys->sys.pf_GetPictureHeight = GetPictureHeight;
 
-    if (vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR && sys->sys.hwnd)
-        sys->p_sensors = HookWindowsSensors(vd, sys->sys.hwnd);
+    if (vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR && sys->sys.hvideownd)
+        sys->p_sensors = HookWindowsSensors(vd, sys->sys.hvideownd);
 
     if (!sys->swapCb || !sys->starRenderCb || !sys->endRenderCb || !sys->resizeCb)
     {
diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c
index c3989682aa..dec5dd5cc3 100644
--- a/modules/video_output/win32/glwin32.c
+++ b/modules/video_output/win32/glwin32.c
@@ -129,7 +129,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
         goto error;
 
     if (vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
-        sys->p_sensors = HookWindowsSensors(vd, sys->sys.hwnd);
+        sys->p_sensors = HookWindowsSensors(vd, sys->sys.hvideownd);
 
     if (!sys->sys.b_windowless)
         EventThreadUpdateTitle(sys->sys.event, VOUT_TITLE " (OpenGL output)");



More information about the vlc-commits mailing list