From 48943a73f68b09da9ff7120ca2804cf74f1cc27d Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 2 Jan 2018 21:14:24 +0100 Subject: vo_gpu/context_android: replace both options with android-surface-size This allows us to automatically trigger a VOCTRL_RESIZE (also contained). --- player/command.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'player') 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) -- cgit v1.2.3