[vlc-commits] [Git][videolan/vlc][master] direct3d11: fix crash when hardware decoder is not D3D11

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Jan 7 09:32:25 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7b27546f by Steve Lhomme at 2025-01-07T09:18:14+00:00
direct3d11: fix crash when hardware decoder is not D3D11

Fixes #28918

- - - - -


1 changed file:

- modules/video_output/win32/direct3d11.cpp


Changes:

=====================================
modules/video_output/win32/direct3d11.cpp
=====================================
@@ -1339,7 +1339,7 @@ static int SetupOutputFormat(vout_display_t *vd, video_format_t *fmt, vlc_video_
     if (vctx)
     {
         d3d11_video_context_t *vtcx_sys = GetD3D11ContextPrivate(vctx);
-        if (sys->picQuad.generic.textureFormat->formatTexture != vtcx_sys->format)
+        if (vtcx_sys && sys->picQuad.generic.textureFormat->formatTexture != vtcx_sys->format)
         {
             HRESULT hr;
             // check the input format can be used as input of a VideoProcessor



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7b27546f6f36b87dd90d7b3aee2427bd1675a6be

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7b27546f6f36b87dd90d7b3aee2427bd1675a6be
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