From 982933e31681d05b1d3addac5a9eff58ea4579c5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 Oct 2019 13:11:32 +0100 Subject: Protect cross-thread access to _pending_images. --- src/lib/ffmpeg_file_encoder.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/ffmpeg_file_encoder.h') 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 > _pending_images; + boost::mutex _pending_images_mutex; static int _video_stream_index; static int _audio_stream_index; -- cgit v1.2.3