X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_content.cc;h=81e26cf7cb6909c482d5f1c4fba6c24c76ae6be5;hb=697d21c3f9bc6243151372f988936662b9993510;hp=d25e06188b95de79ab189e9cbc03b1a8af5adad2;hpb=f67bc45820b4e56f90eecb97ba3b7762c119f9b5;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index d25e06188..81e26cf7c 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -36,6 +36,7 @@ using std::list; using boost::shared_ptr; using boost::dynamic_pointer_cast; using dcp::raw_convert; +using namespace dcpomatic; DCPSubtitleContent::DCPSubtitleContent (boost::filesystem::path path) : Content (path) @@ -88,6 +89,12 @@ DCPSubtitleContent::full_length (shared_ptr film) const return DCPTime (_length, frc); } +DCPTime +DCPSubtitleContent::approximate_length () const +{ + return DCPTime (_length, FrameRateChange()); +} + string DCPSubtitleContent::summary () const {