From 0030e049cd1707762f6f8cd76c7414b95baf928f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 26 Dec 2017 01:38:32 +0100 Subject: player: add internal `vo-resize` command Intended to be used with the properties from previous commit. --- video/out/vo.h | 3 +++ video/out/vo_gpu.c | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'video') diff --git a/video/out/vo.h b/video/out/vo.h index 995d6b97f5..cc86a632e7 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -111,6 +111,9 @@ enum mp_voctrl { VOCTRL_GET_DISPLAY_FPS, // double* VOCTRL_GET_PREF_DEINT, // int* + + /* private to vo_gpu */ + VOCTRL_EXTERNAL_RESIZE, }; // VOCTRL_SET_EQUALIZER diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index 95318d36df..c59be48bd0 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -207,6 +207,10 @@ static int control(struct vo *vo, uint32_t request, void *data) case VOCTRL_PERFORMANCE_DATA: gl_video_perfdata(p->renderer, (struct voctrl_performance_data *)data); return true; + case VOCTRL_EXTERNAL_RESIZE: + p->ctx->fns->reconfig(p->ctx); + resize(vo); + return true; } int events = 0; -- cgit v1.2.3