Commit 5e5a9ad1 authored by Luca Barbato's avatar Luca Barbato Committed by Jean-Baptiste Kempf

Fix DxVA2 crash on Error path

Close #9500 and #9665
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 03e512ac
......@@ -552,7 +552,7 @@ static int Open(vlc_va_t *external, int codec_id, const es_format_t *fmt)
return VLC_SUCCESS;
error:
Close(va);
Close(external);
return VLC_EGENERIC;
}
/* */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment