diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-15 00:27:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-15 00:27:09 +0200 |
| commit | 0802245c4c89b9a8557e5f9b238e8317a92ba51d (patch) | |
| tree | df249494ac061c486762305698157e30021d8ac2 | |
| parent | 67775a6d0d28131b98ae284c7be23d79ccdab685 (diff) | |
Seek to last frame if a request is made beyond the end of the film.
| -rw-r--r-- | src/wx/film_viewer.cc | 2 |
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 (); |
