summaryrefslogtreecommitdiffstats
path: root/video/out/vo_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r--video/out/vo_x11.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index 13fa0a3c9f..32d9b731fd 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -619,12 +619,10 @@ static int control(struct vo *vo, uint32_t request, void *data)
case VOCTRL_REDRAW_FRAME:
draw_image(vo, p->original_image);
return true;
- case VOCTRL_SCREENSHOT: {
- struct voctrl_screenshot_args *args = data;
- args->out_image = get_screenshot(vo);
+ case VOCTRL_SCREENSHOT:
+ *(struct mp_image **)data = get_screenshot(vo);
return true;
}
- }
int events = 0;
int r = vo_x11_control(vo, &events, request, data);