diff options
author | wm4 <wm4@nowhere> | 2014-07-29 00:26:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-29 00:26:52 +0200 |
commit | d6445d7ab6a57054a477e5ff5029503bbb5fd809 (patch) | |
tree | 807f1a77903886074e2f9e6c3ba91028ab31bc87 /player | |
parent | ecad4a20de3420ec5ffbbcdd96d122ed34e532a5 (diff) | |
download | mpv-d6445d7ab6a57054a477e5ff5029503bbb5fd809.tar.bz2 mpv-d6445d7ab6a57054a477e5ff5029503bbb5fd809.tar.xz |
player: allow precise seeking with percent seeks
I'm not sure why this was explicitly disabled. It's from mplayer2 times.
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c index 4f1af50afe..d7f003408a 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -213,8 +213,7 @@ static int mp_seek(MPContext *mpctx, struct seek_params seek, if (hr_seek_very_exact) hr_seek_offset = MPMAX(hr_seek_offset, 0.5); // arbitrary - bool hr_seek = opts->correct_pts; - hr_seek &= seek.exact >= 0 && seek.type != MPSEEK_FACTOR; + bool hr_seek = opts->correct_pts && seek.exact >= 0; hr_seek &= (opts->hr_seek == 0 && seek.type == MPSEEK_ABSOLUTE) || opts->hr_seek > 0 || seek.exact > 0; if (seek.type == MPSEEK_FACTOR || seek.amount < 0 || |