summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gl_video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 908442ad3d..1788bcbc99 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1520,6 +1520,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)