diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-07-09 20:22:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-07-11 12:22:11 +0200 |
| commit | 8b9888ed8247109dc3c09492302e865fa4731460 (patch) | |
| tree | 1ff1c09074decfc44a1bff77d050f908d6542dda /src/lib/check_content_job.cc | |
| parent | 5a5f6d3ac42668017141469fd0e5cd14e3bebe88 (diff) | |
Fix font handling for DCP subtitles.
Diffstat (limited to 'src/lib/check_content_job.cc')
| -rw-r--r-- | src/lib/check_content_job.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/lib/check_content_job.cc b/src/lib/check_content_job.cc index 2b6e25da8..b74b71cc0 100644 --- a/src/lib/check_content_job.cc +++ b/src/lib/check_content_job.cc @@ -21,6 +21,7 @@ #include "check_content_job.h" #include "content.h" +#include "dcp_content.h" #include "examine_content_job.h" #include "film.h" #include "job_manager.h" @@ -69,21 +70,23 @@ CheckContentJob::run () std::vector<shared_ptr<Content>> changed; std::copy_if (content.begin(), content.end(), std::back_inserter(changed), [](shared_ptr<Content> c) { return c->changed(); }); - if (!changed.empty()) { - for (auto i: changed) { - JobManager::instance()->add(make_shared<ExamineContentJob>(_film, i)); - } - set_message (_("Some files have been changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings.")); - } - if (_film->last_written_by_earlier_than(2, 16, 14)) { for (auto c: content) { if (auto stf = dynamic_pointer_cast<StringTextFileContent>(c)) { stf->check_font_ids(); + } else if (auto dcp = dynamic_pointer_cast<DCPContent>(c)) { + dcp->check_font_ids(); } } } + if (!changed.empty()) { + for (auto i: changed) { + JobManager::instance()->add(make_shared<ExamineContentJob>(_film, i)); + } + set_message (_("Some files have been changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings.")); + } + set_progress (1); set_state (FINISHED_OK); } |
