diff options
author | wm4 <wm4@nowhere> | 2015-07-20 21:12:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-20 21:12:46 +0200 |
commit | 4a1657da01da373332f484d26441835975bb4e4b (patch) | |
tree | 10ae7106b128286a6f37572670f23b1561ece759 /video/out/vo_vdpau.c | |
parent | 6f7d04be21de7bdfce3c7c38a4d5fae17451b409 (diff) | |
download | mpv-4a1657da01da373332f484d26441835975bb4e4b.tar.bz2 mpv-4a1657da01da373332f484d26441835975bb4e4b.tar.xz |
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.
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r-- | video/out/vo_vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |