Seek back to same place when something changes.
authorCarl Hetherington <cth@carlh.net>
Sat, 15 Jun 2013 18:26:31 +0000 (19:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 15 Jun 2013 18:26:31 +0000 (19:26 +0100)
src/lib/player.h
src/wx/film_viewer.cc

index cce2bdc21a600ac3e61b59e40d997c0d876985bf..b004540935ef81f967ec2508184722a4b7be3548 100644 (file)
@@ -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;
        }
index e1471d94eb3805ddb754d77dc8812b9f849ba8fb..8f4278c488f67bcdffd06a151b0ab4cc345f5b5e 100644 (file)
@@ -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 ();