diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-10-27 13:11:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-10-27 13:11:32 +0100 |
| commit | 982933e31681d05b1d3addac5a9eff58ea4579c5 (patch) | |
| tree | e67f3be9532d8e5e4c6bafbe67c1ddb2a9bc89a2 /src/lib/ffmpeg_file_encoder.h | |
| parent | 895b386b6751afd3d068155f4ea71e762297672a (diff) | |
Protect cross-thread access to _pending_images.
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.h')
| -rw-r--r-- | src/lib/ffmpeg_file_encoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_file_encoder.h b/src/lib/ffmpeg_file_encoder.h index d763c7eaf..9f1e75b68 100644 --- a/src/lib/ffmpeg_file_encoder.h +++ b/src/lib/ffmpeg_file_encoder.h @@ -90,6 +90,7 @@ private: their data have been passed to FFmpeg. */ std::map<uint8_t*, boost::shared_ptr<const Image> > _pending_images; + boost::mutex _pending_images_mutex; static int _video_stream_index; static int _audio_stream_index; |
