aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/vo_drm.c
diff options
context:
space:
mode:
authorGravatar Lionel CHAZALLON <LongChair@hotmail.com>2017-10-22 23:59:58 -0700
committerGravatar wm4 <wm4@nowhere>2017-10-23 21:08:20 +0200
commit1992bb51515b46555e2a75b780dc79d973b7cf3a (patch)
treecfb2cf5b052cb116c050c0c8e279ab498fc6a2b6 /video/out/vo_drm.c
parentcfcee4cfe70536faeb9f2aaa87257d067e902b70 (diff)
video : Move drm options to substruct.
This allows to group them and most of all query the group config when needed and when we don't have the access to vo.
Diffstat (limited to 'video/out/vo_drm.c')
-rw-r--r--video/out/vo_drm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index 04ac1cab63..24189d5b02 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -412,7 +412,9 @@ static int preinit(struct vo *vo)
}
p->kms = kms_create(
- vo->log, vo->opts->drm_connector_spec, vo->opts->drm_mode_id, vo->opts->drm_overlay_id);
+ vo->log, vo->opts->drm_opts->drm_connector_spec,
+ vo->opts->drm_opts->drm_mode_id,
+ vo->opts->drm_opts->drm_overlay_id);
if (!p->kms) {
MP_ERR(vo, "Failed to create KMS.\n");
goto err;