[vlc-commits] hw:d3d11: attempt to avoid a weird crash

Steve Lhomme git at videolan.org
Fri Feb 9 16:49:52 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb  9 14:02:52 2018 +0100| [5234057a724757d5fce0d48a08398d2e94b4b4b0] | committer: Steve Lhomme

hw:d3d11: attempt to avoid a weird crash

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5234057a724757d5fce0d48a08398d2e94b4b4b0
---

 modules/hw/d3d11/d3d11_deinterlace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/hw/d3d11/d3d11_deinterlace.c b/modules/hw/d3d11/d3d11_deinterlace.c
index 91d26cf912..e382d7a558 100644
--- a/modules/hw/d3d11/d3d11_deinterlace.c
+++ b/modules/hw/d3d11/d3d11_deinterlace.c
@@ -570,7 +570,8 @@ void D3D11CloseDeinterlace(vlc_object_t *obj)
     filter_t *filter = (filter_t *)obj;
     filter_sys_t *sys = filter->p_sys;
 
-    ID3D11VideoProcessorOutputView_Release(sys->processorOutput);
+    if (likely(sys->processorOutput))
+        ID3D11VideoProcessorOutputView_Release(sys->processorOutput);
     ID3D11Texture2D_Release(sys->outTexture);
     ID3D11VideoProcessor_Release(sys->videoProcessor);
     ID3D11VideoProcessorEnumerator_Release(sys->procEnumerator);



More information about the vlc-commits mailing list