diff options
author | wm4 <wm4@nowhere> | 2016-06-08 12:57:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-08 12:57:14 +0200 |
commit | 7373158703c545f387b9557ee864b79a0fd59415 (patch) | |
tree | 898b05cb5f2fa7c94ec03b81c1eeb01e65c67cf7 /video/out/opengl/hwdec_d3d11egl.c | |
parent | 69d5be1ee91d6189ffe8fe2e5c5583e639de92f6 (diff) | |
download | mpv-7373158703c545f387b9557ee864b79a0fd59415.tar.bz2 mpv-7373158703c545f387b9557ee864b79a0fd59415.tar.xz |
vo_opengl: hwdec_d3d11egl: remove broken code on error path
If ID3D11Device_QueryInterface fails, "multithread" will be set to NULL.
The _Release would just make it crash with a null pointer deref.
Diffstat (limited to 'video/out/opengl/hwdec_d3d11egl.c')
-rw-r--r-- | video/out/opengl/hwdec_d3d11egl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index cd4a0f03d9..dbf52dc3d2 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -177,7 +177,6 @@ static int create(struct gl_hwdec *hw) hr = ID3D11Device_QueryInterface(p->d3d11_device, &IID_ID3D10Multithread, (void **)&multithread); if (FAILED(hr)) { - ID3D10Multithread_Release(multithread); MP_ERR(hw, "Failed to get Multithread interface: %s\n", mp_HRESULT_to_str(hr)); goto fail; |