summaryrefslogtreecommitdiffstats
path: root/video/vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-09 21:49:36 +0200
committerwm4 <wm4@nowhere>2014-05-10 10:44:16 +0200
commit280e7e171a0798dd2605863b114982ae9b5cef39 (patch)
tree389a5bda50907ab413966a07a48edbb4e1ba7bea /video/vdpau.c
parent0e1491346edf32fb9576b60c743b6139edba84a7 (diff)
downloadmpv-280e7e171a0798dd2605863b114982ae9b5cef39.tar.bz2
mpv-280e7e171a0798dd2605863b114982ae9b5cef39.tar.xz
vdpau: remove some code
There's no reason why we should treat the preemption case differently here.
Diffstat (limited to 'video/vdpau.c')
-rw-r--r--video/vdpau.c10
1 files changed, 3 insertions, 7 deletions
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);
}
}