[vlc-commits] direct3d11: fix bogus NULL test
Steve Lhomme
git at videolan.org
Wed Sep 25 11:42:06 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 25 10:52:59 2019 +0200| [739e12441ed48291c3d68aa16be937ad243f5208] | committer: Steve Lhomme
direct3d11: fix bogus NULL test
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=739e12441ed48291c3d68aa16be937ad243f5208
---
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 3938f7c176..853ad742c7 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -327,7 +327,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
HRESULT hr;
d3d11_decoder_device_t *d3d11_decoder = GetD3D11OpaqueContext(context);
- if ( d3d11_decoder == NULL )
+ if ( d3d11_decoder != NULL )
{
hr = D3D11_CreateDeviceExternal(vd, d3d11_decoder->device,
is_d3d11_opaque(vd->source.i_chroma),
More information about the vlc-commits
mailing list