Use round() when moving the slider - try to make it the same as trim so that there... v2.13.15
authorCarl Hetherington <cth@carlh.net>
Wed, 18 Apr 2018 00:27:28 +0000 (01:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 18 Apr 2018 00:27:28 +0000 (01:27 +0100)
src/wx/film_viewer.cc

index ccb2b790de4fe816e03c7846967ebff5b581b1b4..2c0712e92bfb282a16fc34921b5f5c004d7103cf 100644 (file)
@@ -421,6 +421,7 @@ FilmViewer::slider_moved (bool page)
        }
 
        DCPTime t (_slider->GetValue() * _film->length().get() / 4096);
+       t = t.round (_film->video_frame_rate());
        /* Ensure that we hit the end of the film at the end of the slider */
        if (t >= _film->length ()) {
                t = _film->length() - one_video_frame();