Remove template from TimedAudioBuffers; a couple of small fixes.
[dcpomatic.git] / src / lib / subrip_content.cc
index bf034200d366cd532b09bfc5150e948fbc98a560..9524cf96baa8fa4b55f6650681e3d69bdfa939c2 100644 (file)
@@ -50,9 +50,11 @@ SubRipContent::examine (boost::shared_ptr<Job> job)
 {
        Content::examine (job);
        SubRip s (shared_from_this ());
-       boost::mutex::scoped_lock lm (_mutex);
        shared_ptr<const Film> film = _film.lock ();
-       _length = DCPTime (s.length (), film->active_frame_rate_change (position ()));
+       DCPTime len (s.length (), film->active_frame_rate_change (position ()));
+
+       boost::mutex::scoped_lock lm (_mutex);
+       _length = len;
 }
 
 string