summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2016-06-07 18:49:26 +1000
committerJames Ross-Gowan <rossymiles@gmail.com>2016-06-07 18:53:05 +1000
commit88b584656d9752573cc4320c845a6d31b5877140 (patch)
treea608867783a7cc46c43e91877824caf2994639ee /video/decode
parenta9150a49d7dabd2e6a39ed5051587012e24fa8b8 (diff)
downloadmpv-88b584656d9752573cc4320c845a6d31b5877140.tar.bz2
mpv-88b584656d9752573cc4320c845a6d31b5877140.tar.xz
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.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/dxva2.c3
1 files changed, 0 insertions, 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)