diff --git a/video/out/gl_video.c b/video/out/gl_video.c index af9e759f40..5b3fe7b34d 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1640,6 +1640,10 @@ static void uninit_video(struct gl_video *p) fbotex_uninit(p, &p->indirect_fbo); fbotex_uninit(p, &p->scale_sep_fbo); + + // Invalidate image_params to ensure that gl_video_config() will call + // init_video() on uninitialized gl_video. + p->image_params = (struct mp_image_params){0}; } static void change_dither_trafo(struct gl_video *p)