diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-12 14:01:15 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-13 14:00:22 +0000 |
commit | 273906490d00582d26404e470731c97197c96db2 (patch) | |
tree | ba765e9ab64f6d7e39de288fb9a30c5ffec2d0fd | |
parent | c4709342367d95d9cfb8a9355e7e66eca74b68d5 (diff) | |
download | mpv-273906490d00582d26404e470731c97197c96db2.tar.bz2 mpv-273906490d00582d26404e470731c97197c96db2.tar.xz |
vo_gpu_next: only increment osd_sync in update_overlays if paused
While the video playing, it's not actually needed and can cause
unnecessary redraws. Fixes #12623.
-rw-r--r-- | video/out/vo_gpu_next.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index d5c234f4bb..14bd15bf9a 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -287,7 +287,7 @@ static void update_overlays(struct vo *vo, struct mp_osd_res res, double pts = src ? src->pts : 0; struct sub_bitmap_list *subs = osd_render(vo->osd, res, pts, flags, subfmt_all); - if (subs->num_items) + if (subs->num_items && p->paused) p->osd_sync++; frame->overlays = state->overlays; |