Re-work idle handling from previous commit.
[dcpomatic.git] / src / wx / film_viewer.h
index 298e9dd00591ca22e7e1609077c30fa45c4efb9d..a37d7581ed5451dbaaa1a3df4d9a75b992c812ef 100644 (file)
@@ -151,7 +151,9 @@ private:
        void timer ();
        void calculate_sizes ();
        void player_change (ChangeType type, int, bool);
-       void get (bool lazy);
+       bool get (bool lazy);
+       void idle_handler ();
+       void request_idle_get ();
        void display_player_video ();
        void film_change (ChangeType, Film::Property);
        void recreate_butler ();
@@ -210,5 +212,8 @@ private:
        StateTimer _state_timer;
        int _gets;
 
+       /** true if an get() is required next time we are idle */
+       bool _idle_get;
+
        boost::signals2::scoped_connection _config_changed_connection;
 };