Read UTF8 string lengths correctly when checking closed captions (part of #1446).
[dcpomatic.git] / src / lib / hints.h
index 6ee398c88c12d6edb77013ab1b8174eb54d1bdc2..35e3618421df8be4b9489c1ca1e5a1b192ed9477 100644 (file)
@@ -21,6 +21,7 @@
 #include "signaller.h"
 #include "player_text.h"
 #include "types.h"
+#include "dcp_text_track.h"
 #include "dcpomatic_time.h"
 #include <boost/weak_ptr.hpp>
 #include <boost/signals2.hpp>
@@ -32,7 +33,7 @@ class Film;
 class Hints : public Signaller
 {
 public:
-       Hints (boost::weak_ptr<const Film> film);
+       explicit Hints (boost::weak_ptr<const Film> film);
        ~Hints ();
 
        void start ();
@@ -55,4 +56,7 @@ private:
        bool _overlap_ccap;
        bool _too_many_ccap_lines;
        boost::optional<DCPTimePeriod> _last;
+
+       boost::mutex _mutex;
+       bool _stop;
 };