diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-26 01:21:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-26 17:04:31 +0100 |
| commit | 09a9ac376db005a40a351736bcff4077f098825d (patch) | |
| tree | 64ea69741155d15d114ad96daf0f90e24b3abe28 /src/wx | |
| parent | 46cd0fe7b5b514f0d9456b25f670679cc584a218 (diff) | |
Another try at sorting out the thorny question of timing.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/film_viewer.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index db2ab9dfe..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); } @@ -445,7 +445,6 @@ FilmViewer::forward_clicked (wxCommandEvent &) return; } - _player->seek_forward (); get_frame (); _panel->Refresh (); _panel->Update (); |
