diff options
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 8ea895d22e..86d208b503 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -2387,7 +2387,8 @@ void gl_video_config(struct gl_video *p, struct mp_image_params *params) if (!mp_image_params_equal(&p->image_params, params)) { uninit_video(p); - init_video(p, params); + if (params->imgfmt) + init_video(p, params); } check_resize(p); |