summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-09-20 12:04:25 +0200
committersfan5 <sfan5@live.de>2020-09-20 12:04:25 +0200
commit3054bcc62c04f8d360aba3c6f24982e78b25bcb0 (patch)
treec54188323ff6f18c5e6a2c132d99044c6982783a /options/options.c
parent7831e52238790bf1742b194e0469cf3db5f59bdd (diff)
downloadmpv-3054bcc62c04f8d360aba3c6f24982e78b25bcb0.tar.bz2
mpv-3054bcc62c04f8d360aba3c6f24982e78b25bcb0.tar.xz
options: simplify --android-surface-size handling
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/options/options.c b/options/options.c
index 1f6f943fdc..88b78565ed 100644
--- a/options/options.c
+++ b/options/options.c
@@ -92,7 +92,6 @@ extern const struct m_sub_options d3d11va_conf;
extern const struct m_sub_options angle_conf;
extern const struct m_sub_options cocoa_conf;
extern const struct m_sub_options macos_conf;
-extern const struct m_sub_options android_conf;
extern const struct m_sub_options wayland_conf;
extern const struct m_sub_options vaapi_conf;
@@ -167,6 +166,9 @@ static const m_option_t mp_vo_opt_list[] = {
#if HAVE_DRM
{"", OPT_SUBSTRUCT(drm_opts, drm_conf)},
#endif
+#if HAVE_EGL_ANDROID
+ {"android-surface-size", OPT_SIZE_BOX(android_surface_size)},
+#endif
{"swapchain-depth", OPT_INT(swapchain_depth), M_RANGE(1, 8)},
{0}
};
@@ -784,10 +786,6 @@ static const m_option_t mp_opts[] = {
{"", OPT_SUBSTRUCT(macos_opts, macos_conf)},
#endif
-#if HAVE_EGL_ANDROID
- {"", OPT_SUBSTRUCT(android_opts, android_conf)},
-#endif
-
#if HAVE_WAYLAND
{"", OPT_SUBSTRUCT(wayland_opts, wayland_conf)},
#endif