[vlc-commits] gl: vdpau: fix vdp_t leak

Thomas Guillem git at videolan.org
Mon Mar 4 10:04:34 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar  4 10:03:33 2019 +0100| [48758ea18323b0f720f770c2cd3b29c32b2d0e9c] | committer: Thomas Guillem

gl: vdpau: fix vdp_t leak

Fixes #21993

Regression from 3c9b5fe7db8af75b01d1011278d2584fc56b7dff

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

 modules/video_output/opengl/converter_vdpau.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/opengl/converter_vdpau.c b/modules/video_output/opengl/converter_vdpau.c
index c15b65afe5..d40d5d181f 100644
--- a/modules/video_output/opengl/converter_vdpau.c
+++ b/modules/video_output/opengl/converter_vdpau.c
@@ -112,6 +112,7 @@ Close(vlc_object_t *obj)
 {
     opengl_tex_converter_t *tc = (void *)obj;
     _glVDPAUFiniNV(); assert(tc->vt->GetError() == GL_NO_ERROR);
+    vdp_release_x11(tc->dec_device->opaque);
 }
 
 static int



More information about the vlc-commits mailing list