mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
a9150a49d7
commit
88b584656d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue