From 7669fe39f67031deea7f5f3ee2610346a9531716 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 26 Apr 2015 17:30:49 +0200 Subject: vo_drm: add window screenshots support (cherry picked from commit 5f21a68ce9a7aeef3f6c395661af06ce9266c91e) --- video/out/vo_drm.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3