X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_content.cc;fp=src%2Flib%2Fdcp_subtitle_content.cc;h=5458f13913a7652cc1ee18ab8c366a510e6b891b;hb=751379da4be48f9b911a91cf17686330dd999d0c;hp=b3e24d5e2dceef959cfb74d67fecbb64f62b9928;hpb=138882d651c5fb9d1dc66d092fcca7f3762a1226;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index b3e24d5e2..5458f1391 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -23,8 +23,8 @@ #include "film.h" #include "text_content.h" #include -#include -#include +#include +#include #include #include @@ -59,8 +59,8 @@ DCPSubtitleContent::examine (shared_ptr film, shared_ptr job) auto subtitle_asset = load(path(0)); - auto iop = dynamic_pointer_cast(subtitle_asset); - auto smpte = dynamic_pointer_cast(subtitle_asset); + auto iop = dynamic_pointer_cast(subtitle_asset); + auto smpte = dynamic_pointer_cast(subtitle_asset); if (smpte) { set_video_frame_rate(film, smpte->edit_rate().numerator); } @@ -70,7 +70,7 @@ DCPSubtitleContent::examine (shared_ptr film, shared_ptr job) /* Default to turning these subtitles on */ only_text()->set_use (true); - _length = ContentTime::from_seconds(subtitle_asset->latest_subtitle_out().as_seconds()); + _length = ContentTime::from_seconds(subtitle_asset->latest_text_out().as_seconds()); subtitle_asset->fix_empty_font_ids();