summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-19 20:21:55 +0100
committerCarl Hetherington <cth@carlh.net>2025-09-03 10:07:15 +0200
commit43f2828711adfdd91554a45c163766f84788c73c (patch)
treed3c35f0c27ef5a6ff40547475ca4d43712bfe39f
parentf0d3c449519e801470e9fae9de4cbe0bf79adaf3 (diff)
Remove an unnecessary get().
-rw-r--r--src/wx/controls.cc2
1 files changed, 1 insertions, 1 deletions
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.