summaryrefslogtreecommitdiff
path: root/src/lib/subrip_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-07 19:07:35 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-07 19:07:35 +0000
commit978be856218cc15f059b7e267811e7302c37b24d (patch)
tree41b97f950dbc5c30953abe4e98ca5053bdff73bc /src/lib/subrip_content.cc
parentae0e45e03ab168de0d291cfa1520beedd6a0a899 (diff)
Remove template from TimedAudioBuffers; a couple of small fixes.
Diffstat (limited to 'src/lib/subrip_content.cc')
-rw-r--r--src/lib/subrip_content.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/subrip_content.cc b/src/lib/subrip_content.cc
index bf034200d..9524cf96b 100644
--- a/src/lib/subrip_content.cc
+++ b/src/lib/subrip_content.cc
@@ -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