/*
- Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2016-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#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>
class Hints : public Signaller
{
public:
- Hints (boost::weak_ptr<const Film> film);
+ explicit Hints (boost::weak_ptr<const Film> film);
~Hints ();
void start ();
private:
void thread ();
- void stop_thread ();
void hint (std::string h);
void text (PlayerText text, TextType type, DCPTimePeriod period);
bool _overlap_ccap;
bool _too_many_ccap_lines;
boost::optional<DCPTimePeriod> _last;
+
+ boost::mutex _mutex;
+ bool _stop;
};