From 4a1657da01da373332f484d26441835975bb4e4b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Jul 2015 21:12:46 +0200 Subject: vo: minor simplification for queue size handling Instead of calling it "future frames" and adding or subtracting 1 from it, always call it "requested frames". This simplifies it a bit. MPContext.next_frames had 2 added to it; this was mainly to ensure a minimum size of 2. Drop it and assume VO_MAX_REQ_FRAMES is at least 2; together with the other changes, this can be the exact size of the array. --- video/out/vo_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_vdpau.c') diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index a75557db0c..7e7771f209 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -301,7 +301,7 @@ static void resize(struct vo *vo) vc->flip_offset_us = vo->opts->fullscreen ? 1000LL * vc->flip_offset_fs : 1000LL * vc->flip_offset_window; - vo_set_queue_params(vo, vc->flip_offset_us, false, 0); + vo_set_queue_params(vo, vc->flip_offset_us, false, 1); if (vc->output_surface_w < vo->dwidth || vc->output_surface_h < vo->dheight) { vc->output_surface_w = s_size(max_w, vc->output_surface_w, vo->dwidth); -- cgit v1.2.3