Remove believed-unnecessary mutex.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Oct 2022 21:37:50 +0000 (23:37 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 18 Oct 2022 18:25:57 +0000 (20:25 +0200)
src/lib/ffmpeg_decoder.cc
src/lib/ffmpeg_decoder.h

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();
index e1a023453a5d21eccd2a479907c674a77a367264..c6d76f1e8c1f7fe272332ffbbbb9f827aa063966 100644 (file)
@@ -77,7 +77,6 @@ private:
        void maybe_add_subtitle ();
 
        std::list<std::shared_ptr<VideoFilterGraph>> _filter_graphs;
-       boost::mutex _filter_graphs_mutex;
 
        dcpomatic::ContentTime _pts_offset;
        boost::optional<dcpomatic::ContentTime> _current_subtitle_to;