diff options
author | sfan5 <sfan5@live.de> | 2017-12-25 16:04:09 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-27 14:29:15 -0700 |
commit | 451fc931b0f4924801b9a27d25a5c0339b2fcace (patch) | |
tree | c96683a962052059e1ab9c02c6ee1c8476c929c0 /options | |
parent | 8a2db0c4b1a4e11b37541ac1eff90d4085fcb608 (diff) | |
download | mpv-451fc931b0f4924801b9a27d25a5c0339b2fcace.tar.bz2 mpv-451fc931b0f4924801b9a27d25a5c0339b2fcace.tar.xz |
vo_gpu/context: Let embedding application handle surface resizes
The callbacks for this are Java-only and EGL does not reliably
return the correct values.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 5 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 3dafbf576b..5eb2cb525b 100644 --- a/options/options.c +++ b/options/options.c @@ -92,6 +92,7 @@ extern const struct m_sub_options d3d11_conf; 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 android_conf; static const struct m_sub_options screenshot_conf = { .opts = image_writer_opts, @@ -668,6 +669,10 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("", cocoa_opts, cocoa_conf, 0), #endif +#if HAVE_ANDROID + OPT_SUBSTRUCT("", android_opts, android_conf, 0), +#endif + #if HAVE_GL_WIN32 OPT_CHOICE("opengl-dwmflush", wingl_dwm_flush, 0, ({"no", -1}, {"auto", 0}, {"windowed", 1}, {"yes", 2})), diff --git a/options/options.h b/options/options.h index c0164834d3..211284ff75 100644 --- a/options/options.h +++ b/options/options.h @@ -328,6 +328,7 @@ typedef struct MPOpts { struct d3d11_opts *d3d11_opts; struct d3d11va_opts *d3d11va_opts; struct cocoa_opts *cocoa_opts; + struct android_opts *android_opts; struct dvd_opts *dvd_opts; int cuda_device; |