summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/options.c9
-rw-r--r--options/options.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 93a76e5d41..38f5d16721 100644
--- a/options/options.c
+++ b/options/options.c
@@ -48,6 +48,10 @@
#include "player/command.h"
#include "stream/stream.h"
+#if HAVE_DRM
+#include "video/out/drm_common.h"
+#endif
+
extern const char mp_help_text[];
static void print_version(struct mp_log *log)
@@ -190,6 +194,11 @@ static const m_option_t mp_vo_opt_list[] = {
#if HAVE_WIN32
OPT_STRING("vo-mmcss-profile", mmcss_profile, 0),
#endif
+#if HAVE_DRM
+ OPT_STRING_VALIDATE("drm-connector", drm_connector_spec,
+ 0, drm_validate_connector_opt),
+ OPT_INT("drm-mode", drm_mode_id, 0),
+#endif
{0}
};
diff --git a/options/options.h b/options/options.h
index db12742f2b..160223d3e1 100644
--- a/options/options.h
+++ b/options/options.h
@@ -51,6 +51,9 @@ typedef struct mp_vo_opts {
struct sws_opts *sws_opts;
// vo_opengl, vo_opengl_cb
int hwdec_preload_api;
+ // vo_drm
+ char *drm_connector_spec;
+ int drm_mode_id;
} mp_vo_opts;
struct mp_cache_opts {