diff options
author | wm4 <wm4@nowhere> | 2015-07-01 19:22:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-01 22:37:46 +0200 |
commit | 41ad9d8924cad07948ee7c2eaff9d0fa1be0b044 (patch) | |
tree | 97ffd8a66c1863f0f0a9c9c0c5b26b768da44be8 /video/out/vo_opengl.c | |
parent | 7faa80ace82f89036f6bb46e9539cc4a0cdce25c (diff) | |
download | mpv-41ad9d8924cad07948ee7c2eaff9d0fa1be0b044.tar.bz2 mpv-41ad9d8924cad07948ee7c2eaff9d0fa1be0b044.tar.xz |
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.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 5b08c21768..981e73ffcb 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -304,7 +304,7 @@ static bool reparse_cmdline(struct gl_priv *p, char *args) if (r >= 0) { int queue = 0; gl_video_set_options(p->renderer, opts->renderer_opts, &queue); - vo_set_flip_queue_params(p->vo, queue, opts->renderer_opts->interpolation); + vo_set_queue_params(p->vo, queue, opts->renderer_opts->interpolation, 1); p->vo->want_redraw = true; } @@ -443,7 +443,7 @@ static int preinit(struct vo *vo) p->glctx->depth_b); int queue = 0; gl_video_set_options(p->renderer, p->renderer_opts, &queue); - vo_set_flip_queue_params(p->vo, queue, p->renderer_opts->interpolation); + vo_set_queue_params(p->vo, queue, p->renderer_opts->interpolation, 0); p->cms = gl_lcms_init(p, vo->log, vo->global); if (!p->cms) |