diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-29 14:50:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-29 14:50:55 +0100 |
| commit | b8724f408298ff3e804fb821fa15d3bcded0e3db (patch) | |
| tree | 6b551ad6a7bc2845f105a5f44bc5151d9e600d1a /src/lib/writer.cc | |
| parent | e60d69b3462755c5f98a460688d391822fdc62fb (diff) | |
| parent | 11619ba7fd5537407798c01c6ca299fb64422338 (diff) | |
Merge branch '1.0' of /home/carl/git/dvdomatic into 1.0
Diffstat (limited to 'src/lib/writer.cc')
| -rw-r--r-- | src/lib/writer.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 2e0ffd833..5f94d5d6b 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -110,6 +110,8 @@ Writer::Writer (shared_ptr<const Film> f, shared_ptr<Job> j) _sound_asset_writer = _sound_asset->start_write (_film->interop ()); _thread = new boost::thread (boost::bind (&Writer::thread, this)); + + _job->descend (0.9); } void @@ -389,6 +391,18 @@ Writer::finish () ) )); + /* Compute the digests for the assets now so that we can keep track of progress. + We did _job->descend (0.9) in our constructor */ + _job->ascend (); + + _job->descend (0.1); + _picture_asset->compute_digest (boost::bind (&Job::set_progress, _job.get(), _1)); + _job->ascend (); + + _job->descend (0.1); + _sound_asset->compute_digest (boost::bind (&Job::set_progress, _job.get(), _1)); + _job->ascend (); + libdcp::XMLMetadata meta = Config::instance()->dcp_metadata (); meta.set_issue_date_now (); dcp.write_xml (_film->interop (), meta); |
