From 847daf7ec0f741eb6d50638c2096743ee731634c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Jul 2025 02:19:35 +0200 Subject: Change ExamineContentJob to take a vector of content. --- src/wx/content_view.cc | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/wx/content_view.cc') diff --git a/src/wx/content_view.cc b/src/wx/content_view.cc index fa6bd64dc..0bbc80535 100644 --- a/src/wx/content_view.cc +++ b/src/wx/content_view.cc @@ -48,6 +48,7 @@ using std::list; using std::make_shared; using std::shared_ptr; using std::string; +using std::vector; using std::weak_ptr; using boost::optional; using namespace dcpomatic; @@ -109,7 +110,7 @@ ContentView::update () } if (content) { - auto job = make_shared(shared_ptr(), content, false); + auto job = make_shared(shared_ptr(), vector>{content}, false); jm->add (job); jobs.push_back (job); } @@ -136,16 +137,18 @@ ContentView::update () if (i->finished_in_error()) { error_dialog(this, std_to_wx(i->error_summary()) + char_to_wx(".\n"), std_to_wx(i->error_details())); } else { - if (auto dcp = dynamic_pointer_cast(i->content())) { - for (auto cpl: dcp::find_and_resolve_cpls(dcp->directories(), true)) { - auto copy = dynamic_pointer_cast(dcp->clone()); - copy->set_cpl(cpl->id()); - add(copy); - _content.push_back(copy); + for (auto c: i->content()) { + if (auto dcp = dynamic_pointer_cast(c)) { + for (auto cpl: dcp::find_and_resolve_cpls(dcp->directories(), true)) { + auto copy = dynamic_pointer_cast(dcp->clone()); + copy->set_cpl(cpl->id()); + add(copy); + _content.push_back(copy); + } + } else { + add(c); + _content.push_back(c); } - } else { - add(i->content()); - _content.push_back(i->content()); } } } -- cgit v1.2.3