From 85c3459bf8878d522bf96e15f4ef0d87f1f51fd0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 22 May 2014 09:28:17 +0200 Subject: vo_vaapi: don't redraw twice After VOCTRL_REDRAW_FRAME, flip_page is called, which renders the frame. The current code rendered the frame twice; drop the redundant call. --- video/out/vo_vaapi.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'video/out/vo_vaapi.c') diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index ac8fb54540..470d767b60 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -299,12 +299,6 @@ static struct mp_image *get_screenshot(struct priv *p) return img; } -static bool redraw_frame(struct priv *p) -{ - p->output_surface = p->visible_surface; - return render_to_screen(p, p->output_surfaces[p->output_surface]); -} - static void free_subpicture(struct priv *p, struct vaapi_osd_image *img) { if (img->image.image_id != VA_INVALID_ID) @@ -528,7 +522,7 @@ static int control(struct vo *vo, uint32_t request, void *data) return get_equalizer(p, eq->name, eq->valueptr); } case VOCTRL_REDRAW_FRAME: - redraw_frame(p); + p->output_surface = p->visible_surface; return true; case VOCTRL_SCREENSHOT: { struct voctrl_screenshot_args *args = data; -- cgit v1.2.3