summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-22 09:28:17 +0200
committerwm4 <wm4@nowhere>2014-05-24 16:44:44 +0200
commit2e4fdf01f5a3a8f5f5288b2ce2a148519eb5d865 (patch)
treef88f40f94381c87e103f42efacbb7835818edf75
parenta2259b3fd318204a862e2442afee1c78da54c913 (diff)
downloadmpv-2e4fdf01f5a3a8f5f5288b2ce2a148519eb5d865.tar.bz2
mpv-2e4fdf01f5a3a8f5f5288b2ce2a148519eb5d865.tar.xz
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.
-rw-r--r--video/out/vo_vaapi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c
index d05b4afd44..4d64487746 100644
--- a/video/out/vo_vaapi.c
+++ b/video/out/vo_vaapi.c
@@ -301,12 +301,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;