diff options
Diffstat (limited to 'video/out/vo_vaapi.c')
-rw-r--r-- | video/out/vo_vaapi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index 06c7b3c9f4..1c4b016e6b 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -541,11 +541,9 @@ static int control(struct vo *vo, uint32_t request, void *data) p->output_surface = p->visible_surface; draw_osd(vo); return true; - case VOCTRL_SCREENSHOT: { - struct voctrl_screenshot_args *args = data; - args->out_image = get_screenshot(p); + case VOCTRL_SCREENSHOT: + *(struct mp_image **)data = get_screenshot(p); return true; - } case VOCTRL_GET_PANSCAN: return VO_TRUE; case VOCTRL_SET_PANSCAN: |