[vlc-commits] direct3d11: fix warnings
Rémi Denis-Courmont
git at videolan.org
Sat Mar 4 18:56:03 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 4 19:55:44 2017 +0200| [958ca9a20d58448216ab589f157f4b263cd7f2a9] | committer: Rémi Denis-Courmont
direct3d11: fix warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=958ca9a20d58448216ab589f157f4b263cd7f2a9
---
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 836efa8..e7c9185 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1669,7 +1669,8 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
return hr;
}
-#if !VLC_WINSTORE_APP
+#if (!VLC_WINSTORE_APP) && defined (HAVE_ID3D11VIDEODECODER)
+
static HKEY GetAdapterRegistry(DXGI_ADAPTER_DESC *adapterDesc)
{
HKEY hKey;
@@ -1698,6 +1699,7 @@ static HKEY GetAdapterRegistry(DXGI_ADAPTER_DESC *adapterDesc)
static bool CanUseTextureArray(vout_display_t *vd)
{
#ifndef HAVE_ID3D11VIDEODECODER
+ (void) vd;
return false;
#else
vout_display_sys_t *sys = vd->sys;
More information about the vlc-commits
mailing list