[vlc-commits] winstore: fix build

Martin Finkel git at videolan.org
Mon Jan 22 15:51:15 CET 2018


vlc/vlc-3.0 | branch: master | Martin Finkel <martin at videolabs.io> | Mon Jan 22 15:47:18 2018 +0100| [22559ca395c1bc1714303708183698931a5e0433] | committer: Hugo Beauzée-Luyssen

winstore: fix build

Signed-off-by: Martin Finkel <martin at videolabs.io>
(cherry picked from commit ce26fcc1656d508b71ae0bd25125c6496f80f3f4)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/video_chroma/d3d11_fmt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index e35da8ef0d..fe50ac84d7 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -165,10 +165,11 @@ static HKEY GetAdapterRegistry(DXGI_ADAPTER_DESC *adapterDesc)
 #undef D3D11_GetDriverVersion
 void D3D11_GetDriverVersion(vlc_object_t *obj, d3d11_device_t *d3d_dev)
 {
-    memset(&d3d_dev->WDDM, 0, sizeof(d3d_dev->WDDM));
 #if VLC_WINSTORE_APP
     return;
 #else
+    memset(&d3d_dev->WDDM, 0, sizeof(d3d_dev->WDDM));
+
     IDXGIAdapter *pAdapter = D3D11DeviceAdapter(d3d_dev->d3ddevice);
     if (!pAdapter)
         return;



More information about the vlc-commits mailing list