Protect cross-thread access to _pending_images.
[dcpomatic.git] / src / lib / ffmpeg_file_encoder.h
index 8b9d0b67c2a7269af994690ca52ede24a6880bc2..a0c17c84680b20ba628a4f0418c7d2d1b0c8d840 100644 (file)
@@ -85,6 +85,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;