0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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.
This commit is contained in:
Dudemanguy 2023-10-12 14:01:15 -05:00
parent c470934236
commit 273906490d

View File

@ -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;