Include rearrangement.
[dcpomatic.git] / src / lib / dcp_subtitle_content.cc
index e9998dd2a2eb10b1b6bd549169eddf80ed908fa6..7be96ceeb7d1127b35dfb88a71e35389abffde25 100644 (file)
 
 */
 
+#include "dcp_subtitle_content.h"
 #include <dcp/subtitle_content.h>
 #include <dcp/raw_convert.h>
-#include "dcp_subtitle_content.h"
 
 #include "i18n.h"
 
 using std::string;
+using std::list;
 using boost::shared_ptr;
 using dcp::raw_convert;
 
@@ -43,11 +44,11 @@ DCPSubtitleContent::DCPSubtitleContent (shared_ptr<const Film> film, cxml::Const
 }
 
 void
-DCPSubtitleContent::examine (shared_ptr<Job> job)
+DCPSubtitleContent::examine (shared_ptr<Job> job, bool calculate_digest)
 {
-       Content::examine (job);
+       Content::examine (job, calculate_digest);
        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