Keep current frame visible when trimming start. Don't trim the current
[dcpomatic.git] / src / lib / sndfile_content.cc
index dc26a1a7e17655f6f91521862a86cd8f6ac67bc7..c4f418775f7d4126c1a824a2e13b35d08d2f25df 100644 (file)
@@ -106,8 +106,6 @@ SndfileContent::take_from_audio_examiner (shared_ptr<AudioExaminer> examiner)
 DCPTime
 SndfileContent::full_length () const
 {
-       shared_ptr<const Film> film = _film.lock ();
-       DCPOMATIC_ASSERT (film);
-       FrameRateChange const frc = film->active_frame_rate_change (position ());
+       FrameRateChange const frc = film()->active_frame_rate_change (position ());
        return DCPTime::from_frames (audio_length() / frc.speed_up, audio_stream()->frame_rate ());
 }