[vlc-commits] [Git][videolan/vlc][master] drm: don't use vd->fmt until it's set
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri Aug 11 14:54:14 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
fc94ef91 by Steve Lhomme at 2023-08-11T14:39:28+00:00
drm: don't use vd->fmt until it's set
At this point vd->fmt and vd->source have the same format, but only vd->source
should be read. We're the ones writing vd->fmt afterwards.
- - - - -
1 changed file:
- modules/video_output/drm/display.c
Changes:
=====================================
modules/video_output/drm/display.c
=====================================
@@ -201,7 +201,7 @@ static int Open(vout_display_t *vd,
if (drm_fourcc == 0) {
drm_fourcc = vlc_drm_find_best_format(fd, sys->plane_id, nfmt,
- vd->fmt->i_chroma);
+ vd->source->i_chroma);
if (drm_fourcc == 0) {
msg_Err(vd, "DRM plane format error: %s", vlc_strerror_c(errno));
return -errno;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fc94ef917109752b0b1f5a47d2b408367f354f2c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fc94ef917109752b0b1f5a47d2b408367f354f2c
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