player: allow precise seeking with percent seeks

I'm not sure why this was explicitly disabled. It's from mplayer2 times.
This commit is contained in:
wm4 2014-07-29 00:26:52 +02:00
parent ecad4a20de
commit d6445d7ab6
1 changed files with 1 additions and 2 deletions

View File

@ -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 ||