[vlc-commits] direct3d11: log the actual source pixel format, not the assumed decoder one

Steve Lhomme git at videolan.org
Tue Aug 7 09:13:09 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug  7 08:07:12 2018 +0200| [d4dc21260f4684619372823a8da13b112ec3e990] | committer: Steve Lhomme

direct3d11: log the actual source pixel format, not the assumed decoder one

(cherry picked from commit 44bbb10adad1f2cbae7bb7f44bbec2191dd53ea4)

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

 modules/video_output/win32/direct3d11.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 374abc5be7..d37e73b90c 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1687,10 +1687,9 @@ static int SetupOutputFormat(vout_display_t *vd, video_format_t *fmt)
        return VLC_EGENERIC;
     }
 
-    fmt->i_chroma = decoder_format ? decoder_format->fourcc : sys->picQuadConfig->fourcc;
-
     msg_Dbg( vd, "Using pixel format %s for chroma %4.4s", sys->picQuadConfig->name,
                  (char *)&fmt->i_chroma );
+    fmt->i_chroma = decoder_format ? decoder_format->fourcc : sys->picQuadConfig->fourcc;
     DxgiFormatMask( sys->picQuadConfig->formatTexture, fmt );
 
     /* check the region pixel format */



More information about the vlc-commits mailing list