[vlc-commits] direct3d11: fix dxgiadapter error test
Steve Lhomme
git at videolan.org
Wed Jun 14 16:36:38 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Jun 14 15:48:49 2017 +0200| [0e872fadc5e00f5b338e63d77da2d44f474827c4] | committer: Hugo Beauzée-Luyssen
direct3d11: fix dxgiadapter error test
CID #1444700
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e872fadc5e00f5b338e63d77da2d44f474827c4
---
modules/video_output/win32/direct3d11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 777bdd0710..303c98fd1e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1553,7 +1553,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
}
IDXGIAdapter *dxgiadapter = D3D11DeviceAdapter(sys->d3ddevice);
- if (FAILED(hr)) {
+ if (unlikely(dxgiadapter==NULL)) {
msg_Err(vd, "Could not get the DXGI Adapter");
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list