mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +00:00
vo: fix number of future frames
That was 2 too many. Also fix a documentation comment.
This commit is contained in:
parent
4730e0aaba
commit
bb9717a630
@ -977,7 +977,7 @@ int vo_get_num_future_frames(struct vo *vo)
|
||||
{
|
||||
struct vo_internal *in = vo->in;
|
||||
pthread_mutex_lock(&in->lock);
|
||||
int res = in->req_frames + 1;
|
||||
int res = in->req_frames - 1;
|
||||
pthread_mutex_unlock(&in->lock);
|
||||
return res;
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ struct vo_frame {
|
||||
// Warning: When OSD should be redrawn in --force-window --idle mode, this
|
||||
// can be NULL. The VO should draw a black background, OSD on top.
|
||||
struct mp_image *current;
|
||||
// List of future images, starting with the next one. This does not
|
||||
// List of future images, starting with the current one. This does not
|
||||
// care about repeated frames - it simply contains the next real frames.
|
||||
// vo_set_queue_params() sets how many future frames this should include.
|
||||
// The actual number of frames delivered to the VO can be lower.
|
||||
|
Loading…
Reference in New Issue
Block a user