From bccf7c5c6ff50e25dff8e0e433b81379d8999f9b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 26 Jan 2019 19:58:37 +0000 Subject: Add lock to _colours since it can be manipulated by a Job thread. --- src/lib/ffmpeg_subtitle_stream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/ffmpeg_subtitle_stream.h') diff --git a/src/lib/ffmpeg_subtitle_stream.h b/src/lib/ffmpeg_subtitle_stream.h index 064c72f8d..85c4df889 100644 --- a/src/lib/ffmpeg_subtitle_stream.h +++ b/src/lib/ffmpeg_subtitle_stream.h @@ -38,5 +38,7 @@ public: std::map 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 _colours; }; -- cgit v1.2.3