Add dcpomatic_combine tool (#1245).
[dcpomatic.git] / src / lib / j2k_encoder.h
index 01cf0605e0c1692e113d07fc8fef59c952f840ef..d56fc1aecd19576c15c96525ce77193fff66d9f9 100644 (file)
@@ -68,7 +68,7 @@ public:
        /** Called when a processing run has finished */
        void end ();
 
-       float current_encoding_rate () const;
+       boost::optional<float> current_encoding_rate () const;
        int video_frames_enqueued () const;
 
        void servers_list_changed ();
@@ -87,9 +87,8 @@ private:
 
        EventHistory _history;
 
-       /** Mutex for _threads */
-       mutable boost::mutex _threads_mutex;
-       std::list<boost::thread *> _threads;
+       boost::shared_ptr<boost::thread_group> _threads;
+
        mutable boost::mutex _queue_mutex;
        std::list<boost::shared_ptr<DCPVideo> > _queue;
        /** condition to manage thread wakeups when we have nothing to do */