From 2fc3908ca3d7a01aee43db7e28f99fb6ec553a68 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 16 Apr 2026 20:30:32 +0200 Subject: Preserve DCP subtitle settings when re-examining (#3152). --- src/lib/dcp_subtitle_content.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index f1ddc0a5d..ac8c4245b 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -47,6 +47,8 @@ DCPSubtitleContent::DCPSubtitleContent(boost::filesystem::path path) : Content(path) { text = vector>{make_shared(this, TextType::OPEN_SUBTITLE, TextType::OPEN_SUBTITLE)}; + /* Default to turning these subtitles on */ + only_text()->set_use(true); } DCPSubtitleContent::DCPSubtitleContent(cxml::ConstNodePtr node, boost::optional film_directory, int version) @@ -70,14 +72,10 @@ DCPSubtitleContent::examine(shared_ptr film, shared_ptr job, bo boost::mutex::scoped_lock lm(_mutex); - text = vector>{make_shared(this, TextType::OPEN_SUBTITLE, TextType::OPEN_SUBTITLE)}; - - /* Default to turning these subtitles on */ - only_text()->set_use(true); - _length = ContentTime::from_seconds(subtitle_asset->latest_text_out().as_seconds()); subtitle_asset->fix_empty_font_ids(); + only_text()->clear_fonts(); add_fonts(only_text(), subtitle_asset); } -- cgit v1.2.3