diff options
author | wm4 <wm4@nowhere> | 2016-08-15 21:07:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-15 21:07:32 +0200 |
commit | 86fa1e6129b89a59492d7eb4b84e52dbec3d49ad (patch) | |
tree | caae896c4f7812df4e276adaa0c9c6c1d7e19092 /player/loadfile.c | |
parent | 795b65b2ffadcaa8d5a4e56340e9f70e0fac9e39 (diff) | |
download | mpv-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/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 590839c799..c41ff4367a 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1140,7 +1140,7 @@ reopen_file: startpos = start; } if (startpos != MP_NOPTS_VALUE) { - queue_seek(mpctx, MPSEEK_ABSOLUTE, startpos, 0, true); + queue_seek(mpctx, MPSEEK_ABSOLUTE, startpos, MPSEEK_DEFAULT, 0); execute_queued_seek(mpctx); } |