X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fdcp_subtitle_content.cc;h=83b0d200cee33146c6f92b33a1de1bd0b34df0da;hb=3e12c68dc0451e73b5bc1a84d1d70f4999f7b4b5;hp=e9998dd2a2eb10b1b6bd549169eddf80ed908fa6;hpb=bde76c3341775bd02da59932d285e14eade64ae0;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index e9998dd2a..83b0d200c 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -24,6 +24,7 @@ #include "i18n.h" using std::string; +using std::list; using boost::shared_ptr; using dcp::raw_convert; @@ -47,7 +48,7 @@ DCPSubtitleContent::examine (shared_ptr job) { Content::examine (job); dcp::SubtitleContent sc (path (0), false); - _length = DCPTime::from_frames (sc.intrinsic_duration(), sc.edit_rate().as_float ()); + _length = DCPTime::from_seconds (sc.latest_subtitle_out().to_seconds ()); } DCPTime