summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_drm_egl.c
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2018-06-02 12:53:58 +0200
committersfan5 <sfan5@live.de>2019-05-04 14:17:11 +0200
commit8261924db93eb436a9e1606d437f0fe64e56dc66 (patch)
treef842ea92e1d575d78f8f95925b2e81ae93ad7a0e /video/out/opengl/context_drm_egl.c
parenta776628d88cb6dab677ba8977d54861d24571c69 (diff)
downloadmpv-8261924db93eb436a9e1606d437f0fe64e56dc66.tar.bz2
mpv-8261924db93eb436a9e1606d437f0fe64e56dc66.tar.xz
drm_common: Add proper help option to drm-mode
This was implemented by using OPT_STRING_VALIDATE for drm-mode, instead of OPT_INT. Using a string here also prepares for future additions to drm-mode that aim to allow specifying a mode by its resolution.
Diffstat (limited to 'video/out/opengl/context_drm_egl.c')
-rw-r--r--video/out/opengl/context_drm_egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index f8360d3e62..c4cc28b762 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -764,7 +764,7 @@ 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_opts->drm_connector_spec,
- ctx->vo->opts->drm_opts->drm_mode_id,
+ ctx->vo->opts->drm_opts->drm_mode_spec,
ctx->vo->opts->drm_opts->drm_draw_plane,
ctx->vo->opts->drm_opts->drm_drmprime_video_plane,
ctx->vo->opts->drm_opts->drm_atomic);