Commit 0e872fad authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

direct3d11: fix dxgiadapter error test

CID #1444700
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent c7992598
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment