summaryrefslogtreecommitdiffstats
path: root/video/csputils.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-02-01 16:41:43 -0600
committerDudemanguy <random342@airmail.cc>2024-02-05 17:23:47 +0000
commit531868fe0d2a35fbbff78d9a9ff8f96df73e69fd (patch)
tree27917d2004335adcb17754829cc2870e2074f506 /video/csputils.c
parent7616190aa4c41c738c53d11d4ef37e70551c39cc (diff)
downloadmpv-531868fe0d2a35fbbff78d9a9ff8f96df73e69fd.tar.bz2
mpv-531868fe0d2a35fbbff78d9a9ff8f96df73e69fd.tar.xz
player: ensure runtime updates of certain rendering options
When adding things like brightness or gamma, the video obviously needs a redraw if paused. This happened to work in the normal case because the OSD notification triggered a redraw, but if you use no-osd the picture won't change. Fix this by adding another option flag, UPDATE_VIDEO, and simply signalling we want a redraw. This gets handled along with the normal osd redrawing check in the playloop so something like "no-osd add gamma 1" actually works.
Diffstat (limited to 'video/csputils.c')
-rw-r--r--video/csputils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/csputils.c b/video/csputils.c
index 6a55ddb38e..0587c57f4e 100644
--- a/video/csputils.c
+++ b/video/csputils.c
@@ -476,6 +476,7 @@ const struct m_sub_options mp_csp_equalizer_conf = {
{0}
},
.size = sizeof(struct mp_csp_equalizer_opts),
+ .change_flags = UPDATE_VIDEO,
};
// Copy settings from eq into params.