Tidy up handling of content-modified checks when using the dcpomatic_cli.
[dcpomatic.git] / src / lib / dcp_subtitle_content.cc
index d25e06188b95de79ab189e9cbc03b1a8af5adad2..81e26cf7cb6909c482d5f1c4fba6c24c76ae6be5 100644 (file)
@@ -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<const Film> film) const
        return DCPTime (_length, frc);
 }
 
+DCPTime
+DCPSubtitleContent::approximate_length () const
+{
+       return DCPTime (_length, FrameRateChange());
+}
+
 string
 DCPSubtitleContent::summary () const
 {