diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-07 19:07:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-07 19:07:35 +0000 |
| commit | 978be856218cc15f059b7e267811e7302c37b24d (patch) | |
| tree | 41b97f950dbc5c30953abe4e98ca5053bdff73bc /src/lib/subrip_content.cc | |
| parent | ae0e45e03ab168de0d291cfa1520beedd6a0a899 (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.cc | 6 |
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 |
