[vlc-devel] [PATCH] opengl: disable the enabled window before deleting it

Steve Lhomme robux4 at ycbcr.xyz
Fri Nov 6 08:25:30 CET 2020


---
 src/video_output/opengl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c
index e5aa4508886..ce127b8b3ad 100644
--- a/src/video_output/opengl.c
+++ b/src/video_output/opengl.c
@@ -180,6 +180,7 @@ vlc_gl_t *vlc_gl_surface_Create(vlc_object_t *obj,
 
     vlc_gl_t *gl = vlc_gl_Create(&dcfg, VLC_OPENGL, NULL);
     if (gl == NULL) {
+        vout_window_Disable(surface);
         vout_window_Delete(surface);
         goto error;
     }
-- 
2.26.2



More information about the vlc-devel mailing list