summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-15 19:26:31 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-15 19:26:31 +0100
commit12074b64d64c1fe76a9cf07a46683b7db96fc56e (patch)
treee38748322039da8870c1ce2f0d0f92b24d0e34d3 /src
parent9517063ff43737301e46f40cb91563f1e75cef24 (diff)
Seek back to same place when something changes.
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 ();