[vlc-commits] kms: check the chroma of the source video format in Open
Steve Lhomme
git at videolan.org
Mon Sep 7 08:16:56 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 2 09:19:25 2020 +0200| [a5dd3c292db87b2b2dfa477012d49817f6f0bcaa] | committer: Steve Lhomme
kms: check the chroma of the source video format in Open
No need to depend on the output format.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a5dd3c292db87b2b2dfa477012d49817f6f0bcaa
---
modules/video_output/kms.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/kms.c b/modules/video_output/kms.c
index f0b5d32ebc..6de37d3372 100644
--- a/modules/video_output/kms.c
+++ b/modules/video_output/kms.c
@@ -692,14 +692,14 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
sys->vlc_fourcc = local_vlc_chroma;
msg_Dbg(vd, "Forcing VLC to use chroma '%4s'", chroma);
} else {
- sys->vlc_fourcc = fmtp->i_chroma;
+ sys->vlc_fourcc = vd->source->i_chroma;
msg_Dbg(vd, "Chroma %4s invalid, using default", chroma);
}
free(chroma);
chroma = NULL;
} else {
- sys->vlc_fourcc = fmtp->i_chroma;
+ sys->vlc_fourcc = vd->source->i_chroma;
msg_Dbg(vd, "Chroma not defined, using default");
}
More information about the vlc-commits
mailing list