summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorMarcin Kurczewski <mkurczew@gmail.com>2015-04-26 17:30:49 +0200
committerwm4 <wm4@nowhere>2015-04-26 20:09:26 +0200
commit5f21a68ce9a7aeef3f6c395661af06ce9266c91e (patch)
treed6b781a0900940e586b12a6bce562b192a8d21f0 /video
parent95a0488ac2210fae28f8505349f0fc1a7f5dd9c2 (diff)
downloadmpv-5f21a68ce9a7aeef3f6c395661af06ce9266c91e.tar.bz2
mpv-5f21a68ce9a7aeef3f6c395661af06ce9266c91e.tar.xz
vo_drm: add window screenshots support
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index 64fdadb271..b67e1b1a52 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -607,6 +607,9 @@ static int control(struct vo *vo, uint32_t request, void *data)
{
struct priv *p = vo->priv;
switch (request) {
+ case VOCTRL_SCREENSHOT_WIN:
+ *(struct mp_image**)data = mp_image_new_copy(p->cur_frame);
+ return VO_TRUE;
case VOCTRL_REDRAW_FRAME:
draw_image(vo, p->last_input);
return VO_TRUE;