summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-09 21:36:45 +0100
committerwm4 <wm4@nowhere>2014-12-09 21:55:27 +0100
commit273565c525f92e62e3cf7e51257d8b5ea8085ba0 (patch)
treeca222f4324577cf0490b5531383bb88174428a83 /video/out/gl_video.c
parent0125fb671478708b4e2a11931756f79e35d77e06 (diff)
downloadmpv-273565c525f92e62e3cf7e51257d8b5ea8085ba0.tar.bz2
mpv-273565c525f92e62e3cf7e51257d8b5ea8085ba0.tar.xz
vo_opengl_cb: simplify reconfigure, render transparent if unconfigured
I think that's expected; mpv shouldn't draw anything while no video is active. This doesn't blend transparently, though. Also document the vo_opengl_cb thing.
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r--video/out/gl_video.c3
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);