diff options
author | wm4 <wm4@nowhere> | 2014-12-09 21:36:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-09 21:55:27 +0100 |
commit | 273565c525f92e62e3cf7e51257d8b5ea8085ba0 (patch) | |
tree | ca222f4324577cf0490b5531383bb88174428a83 /video/out/gl_video.c | |
parent | 0125fb671478708b4e2a11931756f79e35d77e06 (diff) | |
download | mpv-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.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); |