dxva2: use mp_image_pool_get_no_alloc for decoder images

This makes it more explicit that the pool doesn't ever actually do any
allocating itself.
This commit is contained in:
Kevin Mitchell 2016-02-15 16:25:44 -08:00
parent 5d761dd342
commit 88c83f450a
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ static struct mp_image *dxva2_allocate_image(struct lavc_ctx *s, int w, int h)
{
DXVA2Context *ctx = s->hwdec_priv;
struct mp_image *img = mp_image_pool_get(ctx->decoder->pool, IMGFMT_DXVA2, w, h);
struct mp_image *img = mp_image_pool_get_no_alloc(ctx->decoder->pool,
IMGFMT_DXVA2, w, h);
if (!img)
MP_ERR(ctx, "Failed to allocate additional DXVA2 surface.\n");
return img;