Remove believed-unnecessary mutex.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index a5b36d04f442ee71f8ca76adbc718f7c08f4ab3e..986e51ab6c890c32b5305f2113e3aa1f35f2a312 100644 (file)
@@ -401,13 +401,10 @@ FFmpegDecoder::seek (ContentTime time, bool accurate)
                AVSEEK_FLAG_BACKWARD
                );
 
-       {
-               /* Force re-creation of filter graphs to reset them and hence to make sure
-                  they don't have any pre-seek frames knocking about.
-               */
-               boost::mutex::scoped_lock lm (_filter_graphs_mutex);
-               _filter_graphs.clear ();
-       }
+       /* Force re-creation of filter graphs to reset them and hence to make sure
+          they don't have any pre-seek frames knocking about.
+       */
+       _filter_graphs.clear();
 
        if (video_codec_context ()) {
                avcodec_flush_buffers (video_codec_context());
@@ -580,8 +577,6 @@ FFmpegDecoder::decode_and_process_video_packet (AVPacket* packet)
 void
 FFmpegDecoder::process_video_frame ()
 {
-       boost::mutex::scoped_lock lm (_filter_graphs_mutex);
-
        shared_ptr<VideoFilterGraph> graph;
 
        auto i = _filter_graphs.begin();