diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-23 10:42:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | 89e92b3e7effafd2ca3aa1e9300777f2d2fb6183 (patch) | |
| tree | bb542303b25fd0a09be1df91319beb67e1609759 /src/wx/video_view.h | |
| parent | ac69a0eb81e23a341545e05fa12a0e26070cb222 (diff) | |
Don't busy-wait when there's nothing to play.
Diffstat (limited to 'src/wx/video_view.h')
| -rw-r--r-- | src/wx/video_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/video_view.h b/src/wx/video_view.h index ad492bd43..f9e067043 100644 --- a/src/wx/video_view.h +++ b/src/wx/video_view.h @@ -107,7 +107,7 @@ public: protected: bool get_next_frame (bool non_blocking); - int time_until_next_frame () const; + boost::optional<int> time_until_next_frame () const; dcpomatic::DCPTime one_video_frame () const; int video_frame_rate () const { |
