[vlc-commits] Fix DxVA2 crash on Error path

Luca Barbato git at videolan.org
Tue Oct 22 09:35:28 CEST 2013


vlc/vlc-2.1 | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Oct 21 23:48:11 2013 +0200| [d512667653133b8e1a1030ae1d0486544bb8b41d] | committer: Jean-Baptiste Kempf

Fix DxVA2 crash on Error path

Close #9500 and #9665

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 5e5a9ad1ae043664f860822437cd2e624e0188e9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=d512667653133b8e1a1030ae1d0486544bb8b41d
---

 modules/codec/avcodec/dxva2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index e2b0327..1e2f0b7 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -559,7 +559,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;
 }
 /* */



More information about the vlc-commits mailing list