[vlc-devel] [PATCH] egl_pbuffer: add missing call to eglTerminate()

Romain Vimont rom1v at videolabs.io
Mon Mar 8 11:39:58 UTC 2021


The function eglInitialize() was called on open, but eglTerminate() was
not called on close.
---
 modules/video_filter/egl_pbuffer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_filter/egl_pbuffer.c b/modules/video_filter/egl_pbuffer.c
index 69d68c27c9..aa7d596bae 100644
--- a/modules/video_filter/egl_pbuffer.c
+++ b/modules/video_filter/egl_pbuffer.c
@@ -383,6 +383,7 @@ static void Close( vlc_gl_t *gl )
     vt->DeleteTextures(BUFFER_COUNT, sys->textures);
     vlc_gl_ReleaseCurrent(sys->gl);
 
+    eglTerminate(sys->vlc_display->display);
     vlc_egl_display_Delete(sys->vlc_display);
 }
 
-- 
2.30.1



More information about the vlc-devel mailing list