From 280e7e171a0798dd2605863b114982ae9b5cef39 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 May 2014 21:49:36 +0200 Subject: vdpau: remove some code There's no reason why we should treat the preemption case differently here. --- video/vdpau.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'video/vdpau.c') diff --git a/video/vdpau.c b/video/vdpau.c index b26d0ed27b..b9109c36a8 100644 --- a/video/vdpau.c +++ b/video/vdpau.c @@ -200,13 +200,9 @@ struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, e->chroma = chroma; e->w = w; e->h = h; - if (ctx->is_preempted) { - MP_WARN(ctx, "Preempted, no surface.\n"); - } else { - vdp_st = vdp->video_surface_create(ctx->vdp_device, chroma, - w, h, &e->surface); - CHECK_VDP_WARNING(ctx, "Error when calling vdp_video_surface_create"); - } + vdp_st = vdp->video_surface_create(ctx->vdp_device, chroma, + w, h, &e->surface); + CHECK_VDP_WARNING(ctx, "Error when calling vdp_video_surface_create"); return create_ref(e); } } -- cgit v1.2.3