summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 ();
}