[vlc-commits] opengl: check source chroma rather than duplicated output format

Steve Lhomme git at videolan.org
Mon Sep 7 08:16:55 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep  2 09:08:41 2020 +0200| [7be8fb23e817e120fd630b15f03288a48b75b7d8] | committer: Steve Lhomme

opengl: check source chroma rather than duplicated output format

At this stage fmt is not even filled yet.

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

 modules/video_output/opengl/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/display.c b/modules/video_output/opengl/display.c
index da7351a442..464be2cebf 100644
--- a/modules/video_output/opengl/display.c
+++ b/modules/video_output/opengl/display.c
@@ -102,7 +102,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
 #ifndef USE_OPENGL_ES2
     if (surface->type == VOUT_WINDOW_TYPE_XID)
     {
-        switch (fmt->i_chroma)
+        switch (vd->source->i_chroma)
         {
             case VLC_CODEC_VDPAU_VIDEO_444:
             case VLC_CODEC_VDPAU_VIDEO_422:



More information about the vlc-commits mailing list