1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

vo_opengl: reset surfaces on equalizer updates

This makes the VO more responsive to equalizer changes (eg. brightness)
when interpolation is used.
This commit is contained in:
Niklas Haas 2015-03-23 05:23:46 +01:00 committed by wm4
parent dfbe1832ee
commit 987197be46

View File

@ -2542,6 +2542,7 @@ struct mp_csp_equalizer *gl_video_eq_ptr(struct gl_video *p)
// Call when the mp_csp_equalizer returned by gl_video_eq_ptr() was changed. // Call when the mp_csp_equalizer returned by gl_video_eq_ptr() was changed.
void gl_video_eq_update(struct gl_video *p) void gl_video_eq_update(struct gl_video *p)
{ {
gl_video_reset_surfaces(p);
} }
static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt, static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt,