*/
+#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;
}
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