diff options
author | Dudemanguy <random342@airmail.cc> | 2024-02-01 16:41:43 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-05 17:23:47 +0000 |
commit | 531868fe0d2a35fbbff78d9a9ff8f96df73e69fd (patch) | |
tree | 27917d2004335adcb17754829cc2870e2074f506 /video/out/vo.h | |
parent | 7616190aa4c41c738c53d11d4ef37e70551c39cc (diff) | |
download | mpv-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/out/vo.h')
-rw-r--r-- | video/out/vo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 895d6039fe..2d521d8a69 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -512,6 +512,7 @@ void vo_wait_frame(struct vo *vo); bool vo_still_displaying(struct vo *vo); bool vo_has_frame(struct vo *vo); void vo_redraw(struct vo *vo); +void vo_set_want_redraw(struct vo *vo); bool vo_want_redraw(struct vo *vo); void vo_seek_reset(struct vo *vo); void vo_destroy(struct vo *vo); |