From 88b584656d9752573cc4320c845a6d31b5877140 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Tue, 7 Jun 2016 18:49:26 +1000 Subject: dxva2: remove dead code in failure case This was made unnecessary by a02d77b, since the only way the function could fail was by failing to add a reference to the DirectX DLLs. --- video/decode/dxva2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c index 489f580fc0..fc52aca03b 100644 --- a/video/decode/dxva2.c +++ b/video/decode/dxva2.c @@ -89,9 +89,6 @@ static struct mp_image *dxva2_new_ref(IDirectXVideoDecoder *decoder, mp_image_set_size(mpi, w, h); mpi->planes[3] = (void *)surface->surface; return mpi; -fail: - dxva2_release_img(surface); - return NULL; } static struct mp_image *dxva2_allocate_image(struct lavc_ctx *s, int w, int h) -- cgit v1.2.3