Add a log message and actually use device_for_write().
[dcpomatic.git] / src / lib / j2k_encoder.h
index 01cf0605e0c1692e113d07fc8fef59c952f840ef..b4542c40a147cca4ccbc62b39f340a5f6a660afe 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 ();
@@ -89,7 +89,7 @@ private:
 
        /** Mutex for _threads */
        mutable boost::mutex _threads_mutex;
-       std::list<boost::thread *> _threads;
+       std::list<boost::thread*> _threads;
        mutable boost::mutex _queue_mutex;
        std::list<boost::shared_ptr<DCPVideo> > _queue;
        /** condition to manage thread wakeups when we have nothing to do */