vdpau: remove some code

There's no reason why we should treat the preemption case differently
here.
This commit is contained in:
wm4 2014-05-09 21:49:36 +02:00
parent 0e1491346e
commit 280e7e171a
1 changed files with 3 additions and 7 deletions

View File

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