From 1992bb51515b46555e2a75b780dc79d973b7cf3a Mon Sep 17 00:00:00 2001 From: Lionel CHAZALLON Date: Sun, 22 Oct 2017 23:59:58 -0700 Subject: 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. --- video/out/vo_drm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out/vo_drm.c') 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; -- cgit v1.2.3