summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-19 21:24:56 +0200
committerwm4 <wm4@nowhere>2015-08-19 21:24:56 +0200
commitcab1f6439c201d877e709c45bb6a119feddc6a53 (patch)
tree08fe4d9e324f4a5bc803d2505a658d10e8ab3cb6 /player/video.c
parentd0e19b659eee0c855d248d2cd58245d69643cad4 (diff)
downloadmpv-cab1f6439c201d877e709c45bb6a119feddc6a53.tar.bz2
mpv-cab1f6439c201d877e709c45bb6a119feddc6a53.tar.xz
video: don't decode 2 frames ahead with display-sync
This is not needed. It was used only temporarily in a development branch, and is a leftover from earlier rebasing.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c
index e8f4837e69..2d6f6f5e72 100644
--- a/player/video.c
+++ b/player/video.c
@@ -610,9 +610,8 @@ static int get_req_frames(struct MPContext *mpctx, bool eof)
if (eof || mpctx->video_pts == MP_NOPTS_VALUE)
return 1;
- int min = 2 + (VS_IS_DISP(mpctx->opts->video_sync) ? 1 : 0);
int req = vo_get_num_req_frames(mpctx->video_out);
- return MPCLAMP(req, min, MP_ARRAY_SIZE(mpctx->next_frames));
+ return MPCLAMP(req, 2, MP_ARRAY_SIZE(mpctx->next_frames));
}
// Whether it's fine to call add_new_frame() now.