1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00

vo_drm: add window screenshots support

This commit is contained in:
Marcin Kurczewski 2015-04-26 17:30:49 +02:00 committed by wm4
parent 95a0488ac2
commit 5f21a68ce9

View File

@ -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;