From 6c562ac01da72e8b296a360b50642175b6430821 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Feb 2026 02:35:07 +0100 Subject: Prevent attempts to seek beyond the film's length... ...as they cause problems. --- src/lib/player.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3