diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-21 22:46:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-21 22:46:22 +0000 |
| commit | 5973a7f38f109a2cce5ce83d032aa1a2d0a4fd8f (patch) | |
| tree | 6d03de805a4eabbda7beed00e2f960123974124b /src | |
| parent | 1634fbc40e72adf330b59d4497c73bfdcb30aa27 (diff) | |
Update for new bits in libdcp verify.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/verify_dcp_job.cc | 12 | ||||
| -rw-r--r-- | src/lib/verify_dcp_job.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/verify_dcp_job.cc b/src/lib/verify_dcp_job.cc index 8ac41d2a4..5fb2a59c1 100644 --- a/src/lib/verify_dcp_job.cc +++ b/src/lib/verify_dcp_job.cc @@ -26,6 +26,7 @@ using std::string; using std::vector; using boost::shared_ptr; +using boost::optional; VerifyDCPJob::VerifyDCPJob (vector<boost::filesystem::path> directories) : Job (shared_ptr<Film>()) @@ -47,9 +48,18 @@ VerifyDCPJob::json_name () const } void +VerifyDCPJob::update_stage (string s, optional<boost::filesystem::path> path) +{ + if (path) { + s += ": " + path->string(); + } + sub (s); +} + +void VerifyDCPJob::run () { - _notes = dcp::verify (_directories); + _notes = dcp::verify (_directories, bind (&VerifyDCPJob::update_stage, this, _1, _2), bind (&VerifyDCPJob::set_progress, this, _1, false)); bool failed = false; BOOST_FOREACH (dcp::VerificationNote i, _notes) { diff --git a/src/lib/verify_dcp_job.h b/src/lib/verify_dcp_job.h index f61e44372..0ed9669cc 100644 --- a/src/lib/verify_dcp_job.h +++ b/src/lib/verify_dcp_job.h @@ -38,6 +38,8 @@ public: } private: + void update_stage (std::string s, boost::optional<boost::filesystem::path> path); + std::vector<boost::filesystem::path> _directories; std::list<dcp::VerificationNote> _notes; }; |
