summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/player.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 9fd535c43..58b58fe61 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -1422,6 +1422,8 @@ Player::seek(DCPTime time, bool accurate)
_audio_merger.clear();
std::for_each(_active_texts.begin(), _active_texts.end(), [](ActiveText& a) { a.clear(); });
+ time = std::min(time, film->length());
+
for (auto i: _pieces) {
if (time < i->content->position()) {
/* Before; seek to the start of the content. Even if this request is for an inaccurate seek