diff options
Diffstat (limited to 'src/wx/film_viewer.cc')
| -rw-r--r-- | src/wx/film_viewer.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 8b90cd9c9..373e6d717 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -633,3 +633,11 @@ FilmViewer::set_pad_black (bool p) { _pad_black = p; } + +/* XXX_b: comment */ +int +FilmViewer::time_until_next_frame () const +{ + DCPTime const next = position() + one_video_frame(); + return max ((next.seconds() - time().seconds()) * 1000, 1.0); +} |
