From 41ad9d8924cad07948ee7c2eaff9d0fa1be0b044 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Jul 2015 19:22:40 +0200 Subject: video: pass future frames to VO Now the VO can request a number of future frames with the last parameter of vo_set_queue_params(). This will be helpful to fix the interpolation code. Note that the first frame (after playback start or seeking) will usually not have any future frames (to make seeking fast). Near the end of the file, the number of future frames will become lower as well. --- 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 26ff5454dc..f326a62262 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -249,7 +249,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_flip_queue_params(vo, vc->flip_offset_us, false); + vo_set_queue_params(vo, vc->flip_offset_us, false, 0); 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