summaryrefslogtreecommitdiffstats
path: root/video/out/vo_drm.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/vo_drm.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/vo_drm.c')
-rw-r--r--video/out/vo_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index 61553f7eee..281235e911 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -419,7 +419,7 @@ static int preinit(struct vo *vo)
p->kms = kms_create(vo->log,
vo->opts->drm_opts->drm_connector_spec,
- vo->opts->drm_opts->drm_mode_id,
+ vo->opts->drm_opts->drm_mode_spec,
0, 0, false);
if (!p->kms) {
MP_ERR(vo, "Failed to create KMS.\n");