Basic GUI for export.
[dcpomatic.git] / src / lib / encoder.h
index fe18f8b2d5a7a8330b0b93217973b96216206085..7e9bd497a619665f03b55f6b6feb32d2c81ff631 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "util.h"
 #include "cross.h"
+#include "event_history.h"
 #include "exception_store.h"
 #include <boost/shared_ptr.hpp>
 #include <boost/thread/mutex.hpp>
@@ -84,14 +85,7 @@ private:
        /** Film that we are encoding */
        boost::shared_ptr<const Film> _film;
 
-       /** Mutex for _time_history */
-       mutable boost::mutex _state_mutex;
-       /** List of the times of completion of the last _history_size frames;
-           first is the most recently completed.
-       */
-       std::list<struct timeval> _time_history;
-       /** Number of frames that we should keep history for */
-       static int const _history_size;
+       EventHistory _history;
 
        /** Mutex for _threads */
        mutable boost::mutex _threads_mutex;