From 12074b64d64c1fe76a9cf07a46683b7db96fc56e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 15 Jun 2013 19:26:31 +0100 Subject: [PATCH] Seek back to same place when something changes. --- src/lib/player.h | 1 + src/wx/film_viewer.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 (); -- 2.30.2