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

Alexandre Janniaux ajanni at videolabs.io
Fri Nov 6 09:55:44 CET 2020


Hi,

LGTM.

Regards,
--
Alexandr eJanniaux
Videolabs
On Fri, Nov 06, 2020 at 08:25:30AM +0100, Steve Lhomme wrote:
> ---
>  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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list