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 ());
}