summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-16 22:04:23 +0200
committerwm4 <wm4@nowhere>2015-07-16 22:10:08 +0200
commitbb9717a630cd3d1cc0d8aecc03e18c86e49d4d9c (patch)
tree4423e325b0015f2de42658fe0763ead23a537aea /video
parent4730e0aabab1cdb1e08cb0473f4236394d064149 (diff)
downloadmpv-bb9717a630cd3d1cc0d8aecc03e18c86e49d4d9c.tar.bz2
mpv-bb9717a630cd3d1cc0d8aecc03e18c86e49d4d9c.tar.xz
vo: fix number of future frames
That was 2 too many. Also fix a documentation comment.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c2
-rw-r--r--video/out/vo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 94dcabf00e..1db8fa3490 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -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;
}
diff --git a/video/out/vo.h b/video/out/vo.h
index 9e1a6db93c..f264694c08 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -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.