/*
- Copyright (C) 2013-2017 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include "dcpomatic_time.h"
#include "rgba.h"
#include "ffmpeg_stream.h"
+#include <boost/thread/mutex.hpp>
#include <map>
class FFmpegSubtitleStream : public FFmpegStream
std::map<RGBA, RGBA> colours () const;
private:
+ /** mutex to protect _colours as it can be set from the "examine FFmpeg subtitles" job thread */
+ mutable boost::mutex _mutex;
std::map<RGBA, RGBA> _colours;
};