[vlc-devel] [PATCH 05/15] opengl: check source chroma rather than duplicated output format
Steve Lhomme
robux4 at ycbcr.xyz
Thu Sep 3 07:52:22 CEST 2020
At this stage fmt is not even filled yet.
---
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 da7351a4428..464be2cebf2 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:
--
2.26.2
More information about the vlc-devel
mailing list