Don't busy-wait when there's nothing to play.
[dcpomatic.git] / src / wx / video_view.h
index ad492bd435fec51707c7786239c2a96ddd9c3580..f9e0670435ed13edaa2e919cc373e11d12a0a48d 100644 (file)
@@ -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 {