diff options
author | wm4 <wm4@nowhere> | 2013-12-21 18:05:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:11 +0100 |
commit | 9e0b84c32173573cf5e5a09804d399a24a44c7ca (patch) | |
tree | 75b435b42afbc9e9d64d8b5e219f50054698a755 /video/vdpau.c | |
parent | 64278128d8d5315a19da6d319517c48fa97da3f4 (diff) | |
download | mpv-9e0b84c32173573cf5e5a09804d399a24a44c7ca.tar.bz2 mpv-9e0b84c32173573cf5e5a09804d399a24a44c7ca.tar.xz |
vdpau: mp_msg conversions
Diffstat (limited to 'video/vdpau.c')
-rw-r--r-- | video/vdpau.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |