summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-14 22:07:34 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-14 22:07:34 +0100
commit25d55759c94adba96336edf6780cee7138c2ec21 (patch)
tree706dd3de3ca331b512087d66e04919863a617e10 /src
parent161c63b90ad0bcc440452d97bf273f62bf082f62 (diff)
Fix glitchness at the start by not seeking to -ve times.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index b50cb7451..cb5e6b4c2 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -145,8 +145,13 @@ FilmViewer::fetch_current_frame_again ()
/* Player::video_position is the time after the last frame that we received.
We want to see it again, so seek back one frame.
*/
-
- _player->seek (_player->video_position() - _film->video_frames_to_time(1), true);
+
+ Time p = _player->video_position() - _film->video_frames_to_time (1);
+ if (p < 0) {
+ p = 0;
+ }
+
+ _player->seek (p, true);
fetch_next_frame ();
}