From 25d55759c94adba96336edf6780cee7138c2ec21 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 14 Jul 2013 22:07:34 +0100 Subject: Fix glitchness at the start by not seeking to -ve times. --- src/wx/film_viewer.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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 (); } -- cgit v1.2.3