[vlc-commits] d3d11: fix warning
Rémi Denis-Courmont
git at videolan.org
Wed Feb 28 19:12:14 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 28 19:55:05 2018 +0200| [9fc05deb9d3719b5ef314e4fb727bae7eb07cd89] | committer: Rémi Denis-Courmont
d3d11: fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fc05deb9d3719b5ef314e4fb727bae7eb07cd89
---
modules/video_output/win32/direct3d11.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 5574e3f296..4befea8a67 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1375,7 +1375,6 @@ static void D3D11SetColorSpace(vout_display_t *vd)
int best = -1;
int score, best_score = 0;
UINT support;
- IDXGIOutput *dxgiOutput = NULL;
IDXGISwapChain3 *dxgiswapChain3 = NULL;
sys->display.colorspace = &color_spaces[0];
@@ -1422,6 +1421,8 @@ static void D3D11SetColorSpace(vout_display_t *vd)
}
#ifdef HAVE_DXGI1_6_H
+ IDXGIOutput *dxgiOutput = NULL;
+
if (SUCCEEDED(IDXGISwapChain_GetContainingOutput( sys->dxgiswapChain, &dxgiOutput )))
{
IDXGIOutput6 *dxgiOutput6 = NULL;
More information about the vlc-commits
mailing list