[vlc-commits] [Git][videolan/vlc][3.0.x] direct3d11: fix uninitialized sys->src_fmt when render with external device

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Dec 10 09:56:49 UTC 2023



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
fc72e317 by Tung Huynh at 2023-12-10T09:38:29+00:00
direct3d11: fix uninitialized sys->src_fmt when render with external device

- - - - -


1 changed file:

- modules/video_output/win32/direct3d11.c


Changes:

=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -305,7 +305,9 @@ static int Open(vlc_object_t *object)
         return ret;
 #endif
 
-    if (!external_device && CommonInit(vd) != VLC_SUCCESS)
+    if (external_device)
+        sys->sys.src_fmt = &vd->source;
+    else if (CommonInit(vd) != VLC_SUCCESS)
         goto error;
 
     vd->sys->sys.pf_GetPictureWidth  = GetPictureWidth;



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

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