summaryrefslogtreecommitdiff
path: root/src/lib/dcp_subtitle_content.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dcp_subtitle_content.cc')
-rw-r--r--src/lib/dcp_subtitle_content.cc3
1 files changed, 2 insertions, 1 deletions
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> 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