summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-18 21:33:48 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-18 21:33:48 +0000
commit9dc560a46f3e146b78ea525ee134c7fc4d5934e5 (patch)
treeb51165c7c6f25e290186f325680817d3238c6a76 /src
parent602fd58eff38fdfccc489b9f77b3ff0ca0009566 (diff)
Fix slider position updating on play.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index f4ad700ad..e4c02d8eb 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -172,7 +172,7 @@ FilmViewer::timer (wxTimerEvent& ev)
get_frame ();
if (_film->length()) {
- int const new_slider_position = 4096 * _decoders.video->last_source_time() / (_film->length().get() * _film->frames_per_second());
+ int const new_slider_position = 4096 * _decoders.video->last_source_time() / (_film->length().get() / _film->frames_per_second());
if (new_slider_position != _slider->GetValue()) {
_slider->SetValue (new_slider_position);
}