Fix DxVA2 crash on Error path
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Oct 2013 21:48:11 +0000 (23:48 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 21 Oct 2013 21:52:09 +0000 (23:52 +0200)
Close #9500 and #9665

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/avcodec/dxva2.c

index 490e424..2ef69ec 100644 (file)
@@ -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;
 }
 /* */