diff options
author | Lionel CHAZALLON <LongChair@hotmail.com> | 2017-10-22 23:59:58 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-23 21:08:20 +0200 |
commit | 1992bb51515b46555e2a75b780dc79d973b7cf3a (patch) | |
tree | cfb2cf5b052cb116c050c0c8e279ab498fc6a2b6 /video/out/drm_common.c | |
parent | cfcee4cfe70536faeb9f2aaa87257d067e902b70 (diff) | |
download | mpv-1992bb51515b46555e2a75b780dc79d973b7cf3a.tar.bz2 mpv-1992bb51515b46555e2a75b780dc79d973b7cf3a.tar.xz |
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.
Diffstat (limited to 'video/out/drm_common.c')
-rw-r--r-- | video/out/drm_common.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/drm_common.c b/video/out/drm_common.c index c1f374118a..8402ac7e69 100644 --- a/video/out/drm_common.c +++ b/video/out/drm_common.c @@ -41,6 +41,18 @@ static int vt_switcher_pipe[2]; +#define OPT_BASE_STRUCT struct drm_opts +const struct m_sub_options drm_conf = { + .opts = (const struct m_option[]) { + OPT_STRING_VALIDATE("drm-connector", drm_connector_spec, + 0, drm_validate_connector_opt), + OPT_INT("drm-mode", drm_mode_id, 0), + OPT_INT("drm-overlay", drm_overlay_id, 0), + {0}, + }, + .size = sizeof(struct drm_opts), +}; + static const char *connector_names[] = { "Unknown", // DRM_MODE_CONNECTOR_Unknown "VGA", // DRM_MODE_CONNECTOR_VGA |