summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-15 21:07:32 +0200
committerwm4 <wm4@nowhere>2016-08-15 21:07:32 +0200
commit86fa1e6129b89a59492d7eb4b84e52dbec3d49ad (patch)
treecaae896c4f7812df4e276adaa0c9c6c1d7e19092 /player/video.c
parent795b65b2ffadcaa8d5a4e56340e9f70e0fac9e39 (diff)
downloadmpv-86fa1e6129b89a59492d7eb4b84e52dbec3d49ad.tar.bz2
mpv-86fa1e6129b89a59492d7eb4b84e52dbec3d49ad.tar.xz
player: allow passing flags to queue_seek()
Change the last parameter from a bool to an int, which is supposed to take bit-flags. The at this point only flag is MPSEEK_FLAG_DELAY, which replaces the previous bool parameter. The old false parameter becomes 0, the old true parameter becomes MPSEEK_FLAG_DELAY. Since the old "immediate" parameter is now essentially inverted, two coalesced immediate and delayed seeks end up as delayed instead of immediate. This change doesn't matter, since there are no relative immediate seeks anyway.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 9790f34966..e18f8cba70 100644
--- a/player/video.c
+++ b/player/video.c
@@ -543,7 +543,7 @@ void mp_force_video_refresh(struct MPContext *mpctx)
mpctx->last_vo_pts != MP_NOPTS_VALUE)
{
queue_seek(mpctx, MPSEEK_ABSOLUTE, mpctx->last_vo_pts,
- MPSEEK_VERY_EXACT, true);
+ MPSEEK_VERY_EXACT, 0);
}
}