summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/player.h1
-rw-r--r--src/wx/film_viewer.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index cce2bdc21..b00454093 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -56,6 +56,7 @@ public:
void seek_back ();
void seek_forward ();
+ /** @return position that we are at; ie the time of the next thing we will emit on pass() */
Time position () const {
return _position;
}
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index e1471d94e..8f4278c48 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -184,7 +184,7 @@ FilmViewer::update_from_decoder ()
return;
}
- _player->seek (_player->position ());
+ _player->seek (_player->position() - _film->video_frames_to_time (1));
get_frame ();
_panel->Refresh ();
_panel->Update ();