From 43f2828711adfdd91554a45c163766f84788c73c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 19 Dec 2024 20:21:55 +0100 Subject: Remove an unnecessary get(). --- src/wx/controls.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 7d2830df1..4778fdd0f 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -227,7 +227,7 @@ Controls::slider_moved (bool page) _slider_being_moved = true; } - DCPTime t (_slider->GetValue() * _film->length().get() / 4096); + DCPTime t = _film->length() * (_slider->GetValue() / 4096); t = t.round (_film->video_frame_rate()); /* Ensure that we hit the end of the film at the end of the slider. In particular, we need to do an accurate seek in case there isn't a keyframe near the end. -- cgit v1.2.3