diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-26 13:45:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-26 13:45:48 +0100 |
| commit | 6f833b0e9b4342922f5488ceaef76db567c2087f (patch) | |
| tree | 29acffd0a643b590a23da143c0cd0718a569942c /src/wx | |
| parent | 5fa669bbfc7392d29c9ec94cf6527c56558fe43f (diff) | |
Tests pass.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 0ed9a5cb0..8ef64d509 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -181,7 +181,7 @@ FilmViewer::update_from_decoder () return; } - _player->seek (_player->position() - _film->video_frames_to_time (1)); + _player->seek (_player->video_position() - _film->video_frames_to_time (1)); get_frame (); _panel->Refresh (); _panel->Update (); @@ -197,7 +197,7 @@ FilmViewer::timer (wxTimerEvent &) get_frame (); if (_film->length()) { - int const new_slider_position = 4096 * _player->position() / _film->length(); + int const new_slider_position = 4096 * _player->video_position() / _film->length(); if (new_slider_position != _slider->GetValue()) { _slider->SetValue (new_slider_position); } |
