mirror of
https://github.com/mpv-player/mpv
synced 2025-02-12 09:57:15 +00: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:
parent
c470934236
commit
273906490d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user