X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fhints.h;h=00c2486e7e430e094ab1fcbdfc5def77cb70c29f;hb=232ddcc9892a7dfd54efa7533c27c4cfdf71bffd;hp=9da0612861a27ecd866a01491a2c2dcf5cce25e9;hpb=1db0293ad36605da9ca8daa8736ef581f4f6a34e;p=dcpomatic.git diff --git a/src/lib/hints.h b/src/lib/hints.h index 9da061286..00c2486e7 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -45,9 +45,8 @@ public: private: void thread (); - void stop_thread (); void hint (std::string h); - void text (PlayerText text, TextType type, boost::optional track, DCPTimePeriod period); + void text (PlayerText text, TextType type, dcpomatic::DCPTimePeriod period); boost::weak_ptr _film; boost::thread* _thread; @@ -55,5 +54,8 @@ private: bool _long_ccap; bool _overlap_ccap; bool _too_many_ccap_lines; - boost::optional _last; + boost::optional _last; + + boost::mutex _mutex; + bool _stop; };