[vlc-devel] [PATCH 4/6] direct3d11: fix dxgiadapter error test
Steve Lhomme
robux4 at videolabs.io
Wed Jun 14 15:48:49 CEST 2017
CID #1444700
---
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 bad58a56d6..347f1fddbb 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1538,7 +1538,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;
}
--
2.12.1
More information about the vlc-devel
mailing list