summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2018-01-02 21:14:24 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-02 15:04:31 -0800
commit48943a73f68b09da9ff7120ca2804cf74f1cc27d (patch)
tree3a1a09780a2944344fc380fd532e44f55f87e1b7 /player/command.c
parent08bcf1d92da0ef19499c064cb8bc1b0cb64e5f10 (diff)
downloadmpv-48943a73f68b09da9ff7120ca2804cf74f1cc27d.tar.bz2
mpv-48943a73f68b09da9ff7120ca2804cf74f1cc27d.tar.xz
vo_gpu/context_android: replace both options with android-surface-size
This allows us to automatically trigger a VOCTRL_RESIZE (also contained).
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 48206f527d..541e2d1987 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5819,6 +5819,11 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags)
if (flags & UPDATE_LAVFI_COMPLEX)
update_lavfi_complex(mpctx);
+
+ if (flags & UPDATE_VO_RESIZE) {
+ if (mpctx->video_out)
+ vo_control(mpctx->video_out, VOCTRL_EXTERNAL_RESIZE, NULL);
+ }
}
void mp_notify_property(struct MPContext *mpctx, const char *property)