summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl_cb.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-17 09:07:35 +0200
committerwm4 <wm4@nowhere>2017-10-17 09:07:35 +0200
commitc90f76d3224f41dda2ac462e3aedcd0dd10ce3cf (patch)
tree9592eb12cb72e376bc328533ae15e53beff58b10 /video/out/vo_opengl_cb.c
parentb299a3f54656095bd0f038360721d29356c7049d (diff)
downloadmpv-c90f76d3224f41dda2ac462e3aedcd0dd10ce3cf.tar.bz2
mpv-c90f76d3224f41dda2ac462e3aedcd0dd10ce3cf.tar.xz
vo_gpu: fix video sometimes not being rerendered on equalizer change
With video paused, changing the brightness controls (or similar) would sometimes not rerender the video frame. So the OSD would redraw, but the video wouldn't change. This is caused by output caching, and a redraw request is free to return the cached frame. Change it such to invalidate the cached frame if any of the options or the equalizer change. In theory, gl_video_reset_surfaces() could be called if the equalizer changes - this would apparently force interpolatzion to redraw all frames. But this looks kind of crappy when changing the equalizer during playback. It'll "eventually" use the correct settings anyway, and when paused interpolation is off.
Diffstat (limited to 'video/out/vo_opengl_cb.c')
-rw-r--r--video/out/vo_opengl_cb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c
index a5fd49ff6f..c903fcd43b 100644
--- a/video/out/vo_opengl_cb.c
+++ b/video/out/vo_opengl_cb.c
@@ -291,7 +291,6 @@ int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int vp_w, int vp_h)
gl_video_config(ctx->renderer, &ctx->img_params);
}
if (ctx->update_new_opts) {
- gl_video_update_options(ctx->renderer);
if (vo)
gl_video_configure_queue(ctx->renderer, vo);
int debug;