summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-29 00:59:00 +0200
committerwm4 <wm4@nowhere>2014-07-29 00:59:00 +0200
commit25ceb3289d1b031ab55b9f6fa57a4dfb0fa687fa (patch)
tree3363f52a8c62df6c07cf37f560709e0bcfa2f088 /player
parentd6445d7ab6a57054a477e5ff5029503bbb5fd809 (diff)
downloadmpv-25ceb3289d1b031ab55b9f6fa57a4dfb0fa687fa.tar.bz2
mpv-25ceb3289d1b031ab55b9f6fa57a4dfb0fa687fa.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/playloop.c b/player/playloop.c
index d7f003408a..3cd0e78129 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -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) {