1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 21:31:52 +00:00

vo: fix number of future frames

That was 2 too many.

Also fix a documentation comment.
This commit is contained in:
wm4 2015-07-16 22:04:23 +02:00
parent 4730e0aaba
commit bb9717a630
2 changed files with 2 additions and 2 deletions

View File

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

View File

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