summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2017-12-26 01:38:32 +0100
committerKevin Mitchell <kevmitch@gmail.com>2017-12-27 14:29:15 -0700
commit0030e049cd1707762f6f8cd76c7414b95baf928f (patch)
tree55293e914b7fbfee789fce0b89ab2991ead5b94f /video
parent451fc931b0f4924801b9a27d25a5c0339b2fcace (diff)
downloadmpv-0030e049cd1707762f6f8cd76c7414b95baf928f.tar.bz2
mpv-0030e049cd1707762f6f8cd76c7414b95baf928f.tar.xz
player: add internal `vo-resize` command
Intended to be used with the properties from previous commit.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.h3
-rw-r--r--video/out/vo_gpu.c4
2 files changed, 7 insertions, 0 deletions
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;