- /** FilmState of the film that we are encoding */
- boost::shared_ptr<const FilmState> _fs;
- /** Options */
- boost::shared_ptr<const Options> _opt;
- /** Log */
- Log* _log;
-
- /** Mutex for _time_history, _just_skipped and _last_frame */
- mutable boost::mutex _history_mutex;
+ void frame_done ();
+
+ void encoder_thread (boost::optional<ServerDescription>);
+ void terminate_threads ();
+ void add_worker_threads (ServerDescription);
+ void server_found (ServerDescription);
+
+ /** Film that we are encoding */
+ boost::shared_ptr<const Film> _film;
+ boost::weak_ptr<Job> _job;
+
+ /** Mutex for _time_history and _last_frame */
+ mutable boost::mutex _state_mutex;