From 9e0b84c32173573cf5e5a09804d399a24a44c7ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 18:05:23 +0100 Subject: vdpau: mp_msg conversions --- video/vdpau.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'video/vdpau.c') diff --git a/video/vdpau.c b/video/vdpau.c index a9991e2b12..e543a2553c 100644 --- a/video/vdpau.c +++ b/video/vdpau.c @@ -161,7 +161,7 @@ struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, int fmt, if (!e->in_use && e->surface != VDP_INVALID_HANDLE) { if (e->fmt != fmt || e->chroma != chroma || e->w != w || e->h != h) { vdp_st = vdp->video_surface_destroy(e->surface); - CHECK_ST_WARNING("Error when calling vdp_video_surface_destroy"); + CHECK_VDP_WARNING(ctx, "Error when calling vdp_video_surface_destroy"); e->surface = VDP_INVALID_HANDLE; } } @@ -191,7 +191,7 @@ struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, int fmt, } else { vdp_st = vdp->video_surface_create(ctx->vdp_device, chroma, w, h, &e->surface); - CHECK_ST_WARNING("Error when calling vdp_video_surface_create"); + CHECK_VDP_WARNING(ctx, "Error when calling vdp_video_surface_create"); } return create_ref(e); } @@ -232,13 +232,13 @@ void mp_vdpau_destroy(struct mp_vdpau_ctx *ctx) assert(!ctx->video_surfaces[i].in_use); if (ctx->video_surfaces[i].surface != VDP_INVALID_HANDLE) { vdp_st = vdp->video_surface_destroy(ctx->video_surfaces[i].surface); - CHECK_ST_WARNING("Error when calling vdp_video_surface_destroy"); + CHECK_VDP_WARNING(ctx, "Error when calling vdp_video_surface_destroy"); } } if (ctx->vdp_device != VDP_INVALID_HANDLE) { vdp_st = vdp->device_destroy(ctx->vdp_device); - CHECK_ST_WARNING("Error when calling vdp_device_destroy"); + CHECK_VDP_WARNING(ctx, "Error when calling vdp_device_destroy"); } talloc_free(ctx); -- cgit v1.2.3