1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 18:12:22 +00:00

vo: expose frame->num_vsyncs to the VO backend

It's not clear why this was originally hidden, but the information is
useful for allowing the VO backend to make decisions about caching.
This commit is contained in:
Niklas Haas 2015-10-23 19:31:24 +02:00 committed by wm4
parent bf6b981367
commit ad6e7c31df

View File

@ -646,7 +646,6 @@ static bool render_frame(struct vo *vo)
frame->next_vsync = next_vsync;
frame->prev_vsync = prev_vsync;
frame->num_vsyncs = 1;
// Time at which we should flip_page on the VO.
int64_t target = frame->display_synced ? 0 : pts - in->flip_queue_offset;