Fix font_id_map errors when importing DCP subtitles that have no
[dcpomatic.git] / src / lib / event_history.h
index e194f633335f0c3e0850a4db3c101d54aadabfef..a98447f4246f58aa37d11514a59406e59a3af326 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2017-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_EVENT_HISTORY_H
 #define DCPOMATIC_EVENT_HISTORY_H
 
+
 #include <boost/thread/mutex.hpp>
+#include <boost/optional.hpp>
 #include <list>
 
+
 class EventHistory
 {
 public:
        explicit EventHistory (int size);
 
-       float rate () const;
+       boost::optional<float> rate () const;
        void event ();
 
 private:
@@ -43,4 +47,5 @@ private:
        int const _size;
 };
 
+
 #endif