diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-04-15 23:07:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-15 23:08:03 +0200 |
| commit | a6bd45aee85ab014f0a4bb0fcdd690a995d04f5b (patch) | |
| tree | 3cbab998ad5c8e973c2dd3cde1949d91e51848c0 /src/lib/dcp_subtitle_content.cc | |
| parent | 0466bf2201175e55d036f0510fd9a0b08b1d5d2f (diff) | |
Fix error when re-examing DCP subtitle content (#3152).
Diffstat (limited to 'src/lib/dcp_subtitle_content.cc')
| -rw-r--r-- | src/lib/dcp_subtitle_content.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index b285a78fe..86b811445 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -38,6 +38,7 @@ using std::list; using std::make_shared; using std::shared_ptr; using std::string; +using std::vector; using boost::optional; using namespace dcpomatic; @@ -71,6 +72,8 @@ DCPSubtitleContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bo boost::mutex::scoped_lock lm(_mutex); + text = vector<shared_ptr<TextContent>>{make_shared<TextContent>(this, TextType::OPEN_SUBTITLE, TextType::OPEN_SUBTITLE)}; + /* Default to turning these subtitles on */ only_text()->set_use(true); |
