+2014-03-07 Carl Hetherington <cth@carlh.net>
+
+ * Add subtitle view.
+
+ 2014-03-17 Carl Hetherington <cth@carlh.net>
+
+ * Improve behaviour of the position slider at the end of films.
+
+ * Version 1.66.2 released.
+
2014-03-17 Carl Hetherington <cth@carlh.net>
* Improve appearance of config dialog on OS X.
FilmViewer::slider_moved ()
{
if (_film && _player) {
- Time t = _slider->GetValue() * _film->length() / 4096;
- /* Ensure that we hit the end of the film at the end of the slider */
- if (t >= _film->length ()) {
- t = _film->length() - _film->video_frames_to_time (1);
+ try {
++ Time t = _slider->GetValue() * _film->length() / 4096;
++ /* Ensure that we hit the end of the film at the end of the slider */
++ if (t >= _film->length ()) {
++ t = _film->length() - _film->video_frames_to_time (1);
++ }
+ _player->seek (DCPTime (_film->length().get() * _slider->GetValue() / 4096), false);
+ fetch_next_frame ();
+ } catch (OpenFileError& e) {
+ /* There was a problem opening a content file; we'll let this slide as it
+ probably means a missing content file, which we're already taking care of.
+ */
}
- _player->seek (t, false);
- fetch_next_frame ();
}
}