[vlc-commits] [Git][videolan/vlc][master] direct3d11: use more generic vlc_fourcc_GetFallback()

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 9 19:29:13 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bdb93210 by Steve Lhomme at 2023-09-09T19:03:57+00:00
direct3d11: use more generic vlc_fourcc_GetFallback()

- - - - -


1 changed file:

- modules/video_output/win32/direct3d11.cpp


Changes:

=====================================
modules/video_output/win32/direct3d11.cpp
=====================================
@@ -808,9 +808,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmtp, vlc_video_co
 #endif
                 )
         {
-            const vlc_fourcc_t *list = vlc_fourcc_IsYUV(vd->source->i_chroma) ?
-                        vlc_fourcc_GetYUVFallback(vd->source->i_chroma) :
-                        vlc_fourcc_GetRGBFallback(vd->source->i_chroma);
+            const vlc_fourcc_t *list = vlc_fourcc_GetFallback(vd->source->i_chroma);
             for (unsigned i = 0; list[i] != 0; i++) {
                 fmt.i_chroma = list[i];
                 if (fmt.i_chroma == vd->source->i_chroma)



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

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