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/opengl/context_drm_egl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'video/out/opengl/context_drm_egl.c') diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c index c7de762e28..606736d483 100644 --- a/video/out/opengl/context_drm_egl.c +++ b/video/out/opengl/context_drm_egl.c @@ -347,8 +347,9 @@ static bool drm_egl_init(struct ra_ctx *ctx) } MP_VERBOSE(ctx, "Initializing KMS\n"); - p->kms = kms_create(ctx->log, ctx->vo->opts->drm_connector_spec, - ctx->vo->opts->drm_mode_id, ctx->vo->opts->drm_overlay_id); + p->kms = kms_create(ctx->log, ctx->vo->opts->drm_opts->drm_connector_spec, + ctx->vo->opts->drm_opts->drm_mode_id, + ctx->vo->opts->drm_opts->drm_overlay_id); if (!p->kms) { MP_ERR(ctx, "Failed to create KMS.\n"); return false; -- cgit v1.2.3