[vlc-commits] direct3d11: don't use the sensor in Winstore builds
Steve Lhomme
git at videolan.org
Wed Apr 8 14:53:57 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Apr 7 15:55:46 2020 +0200| [fb809c412c1b30755823470b0e56f6241c73ccd3] | committer: Steve Lhomme
direct3d11: don't use the sensor in Winstore builds
It requires a HWND to get the permission and it's not built anyway.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb809c412c1b30755823470b0e56f6241c73ccd3
---
modules/video_output/win32/direct3d11.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 1939b185ec..66b06c50b9 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -337,8 +337,10 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
sys->selectPlaneCb = LocalSwapchainSelectPlane;
}
+#if !VLC_WINSTORE_APP
if (vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR && sys->sys.hvideownd)
sys->p_sensors = HookWindowsSensors(vd, sys->sys.hvideownd);
+#endif // !VLC_WINSTORE_APP
if (Direct3D11Open(vd, fmtp, context)) {
msg_Err(vd, "Direct3D11 could not be opened");
@@ -378,8 +380,8 @@ static void Close(vout_display_t *vd)
{
D3D11_ReleaseShaders(&vd->sys->shaders);
Direct3D11Close(vd);
- UnhookWindowsSensors(vd->sys->p_sensors);
#if !VLC_WINSTORE_APP
+ UnhookWindowsSensors(vd->sys->p_sensors);
CommonWindowClean(VLC_OBJECT(vd), &vd->sys->sys);
#endif
}
More information about the vlc-commits
mailing list