summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_subtitle_stream.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-26 19:58:37 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-26 19:58:37 +0000
commitbccf7c5c6ff50e25dff8e0e433b81379d8999f9b (patch)
treeb14078351106bede2ca5a8d2c28460686ad9da35 /src/lib/ffmpeg_subtitle_stream.h
parent3743fb15c41eaa66cf625cb4ce9b1f8122b900b4 (diff)
Add lock to _colours since it can be manipulated by a Job thread.
Diffstat (limited to 'src/lib/ffmpeg_subtitle_stream.h')
-rw-r--r--src/lib/ffmpeg_subtitle_stream.h2
1 files changed, 2 insertions, 0 deletions
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<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;
};