summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-02-15 16:25:44 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-02-16 12:36:57 -0800
commit88c83f450afdf763f88fbc3bab40556e24af1b6d (patch)
treee3b9ba03238f6c6cab5f26021d1f83836bddd054 /video
parent5d761dd342c724a94bb980cab38bc6f5bf229a85 (diff)
downloadmpv-88c83f450afdf763f88fbc3bab40556e24af1b6d.tar.bz2
mpv-88c83f450afdf763f88fbc3bab40556e24af1b6d.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/decode/dxva2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c
index 76f95b0db6..782ae17cfe 100644
--- a/video/decode/dxva2.c
+++ b/video/decode/dxva2.c
@@ -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;