diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 1632a45be..07c64886e 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -221,7 +221,15 @@ FilmViewer::get (DCPTime p, bool accurate) void FilmViewer::timer () { - get (_position + DCPTime::from_frames (1, _film->video_frame_rate ()), true); + DCPTime const frame = DCPTime::from_frames (1, _film->video_frame_rate ()); + + if ((_position + frame) >= _film->length ()) { + _play_button->SetValue (false); + check_play_state (); + } else { + get (_position + frame, true); + } + update_position_label (); update_position_slider (); } |
