summaryrefslogtreecommitdiffstats
path: root/video/out/vo_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_drm.c')
-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;