[vlc-commits] [Git][videolan/vlc][master] dxa9: fix crash when there is not extra converter

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Oct 2 13:17:19 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
17377f4b by Steve Lhomme at 2023-10-02T12:57:17+00:00
dxa9: fix crash when there is not extra converter

It's a legit case already handled in various places.

- - - - -


1 changed file:

- modules/hw/d3d9/dxa9.c


Changes:

=====================================
modules/hw/d3d9/dxa9.c
=====================================
@@ -450,7 +450,8 @@ int D3D9OpenConverter( filter_t *p_filter )
 static void D3D9CloseCPUConverter( filter_t *p_filter )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
-    DeleteFilter(p_sys->filter);
+    if (p_sys->filter != NULL)
+        DeleteFilter(p_sys->filter);
     if (p_sys->staging)
         picture_Release(p_sys->staging);
     vlc_video_context_Release(p_filter->vctx_out);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/17377f4b7e49b036d395ee58ca9c35ba84c1d342

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/17377f4b7e49b036d395ee58ca9c35ba84c1d342
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list