summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-15 00:27:09 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-15 00:27:09 +0200
commit0802245c4c89b9a8557e5f9b238e8317a92ba51d (patch)
treedf249494ac061c486762305698157e30021d8ac2
parent67775a6d0d28131b98ae284c7be23d79ccdab685 (diff)
Seek to last frame if a request is made beyond the end of the film.
-rw-r--r--src/wx/film_viewer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index c020a3baf..bff2df0ff 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -462,7 +462,7 @@ FilmViewer::seek (DCPTime t, bool accurate)
}
if (t >= _film->length ()) {
- t = _film->length ();
+ t = _film->length() - one_video_frame();
}
suspend ();