diff options
author | Anton Kindestam <antonki@kth.se> | 2018-06-02 12:53:58 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-05-04 14:17:11 +0200 |
commit | 8261924db93eb436a9e1606d437f0fe64e56dc66 (patch) | |
tree | f842ea92e1d575d78f8f95925b2e81ae93ad7a0e /video/out/vo_drm.c | |
parent | a776628d88cb6dab677ba8977d54861d24571c69 (diff) | |
download | mpv-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.c | 2 |
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"); |