vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Fri Feb  9 
14:02:52 2018 +0100| [af3950764dbcba29c864eaa2258ae2689e607bae] | committer: 
Jean-Baptiste Kempf

hw:d3d11: attempt to avoid a weird crash

(cherry picked from commit 5234057a724757d5fce0d48a08398d2e94b4b4b0)
Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

 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);

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to