mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
player: disable hr-seek in .ts files
Seeking in .ts files (and some other formats) is too unreliable, so there's a separate code path for this case. But it breaks hr-seek. Maybe hr-seek could actually be enabled in this case if we're careful enough about timestamp resets, but for now nothing changes.
This commit is contained in:
parent
d6445d7ab6
commit
25ceb3289d
@ -231,6 +231,7 @@ static int mp_seek(MPContext *mpctx, struct seek_params seek,
|
||||
seek.direction = seek.amount > 0 ? 1 : -1;
|
||||
seek.amount += get_current_time(mpctx);
|
||||
}
|
||||
hr_seek &= seek.type == MPSEEK_ABSOLUTE; // otherwise, no target PTS known
|
||||
|
||||
double demuxer_amount = seek.amount;
|
||||
if (mpctx->timeline) {
|
||||
|
Loading…
Reference in New Issue
Block a user