[vlc-commits] vaapi: fix crash on error case
Jean-Baptiste Kempf
git at videolan.org
Sun Dec 3 22:06:35 CET 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Dec 3 18:54:33 2017 +0100| [10a562ee149e199529f917e53da9c4fc902cf629] | committer: Jean-Baptiste Kempf
vaapi: fix crash on error case
Regression from f0c3cef078963f848e961088d452c488c88f4f7a
Close #19204
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10a562ee149e199529f917e53da9c4fc902cf629
---
modules/video_output/opengl/converter_vaapi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/opengl/converter_vaapi.c b/modules/video_output/opengl/converter_vaapi.c
index 4f99b266c7..6fb1a6e3d6 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -305,7 +305,8 @@ Close(vlc_object_t *obj)
if (priv->last.pic != NULL)
vaegl_release_last_pic(tc, priv);
- vlc_vaapi_ReleaseInstance(priv->vainst);
+ if (priv->vainst)
+ vlc_vaapi_ReleaseInstance(priv->vainst);
free(tc->priv);
}
More information about the vlc-commits
mailing list