Try to hack progress reporting for make DCP to not sit at 100% for a while (#5).
authorCarl Hetherington <cth@carlh.net>
Thu, 13 Dec 2012 00:38:41 +0000 (00:38 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 13 Dec 2012 00:38:41 +0000 (00:38 +0000)
src/lib/make_dcp_job.cc

index 026724806b971bd029570e04075fdaa64dfca6c7..65cd272e7b7fa88b09fc48aa30d559dad727f28b 100644 (file)
@@ -103,7 +103,7 @@ MakeDCPJob::run ()
        
        dcp.add_cpl (cpl);
 
-       descend (0.9);
+       descend (0.8);
        shared_ptr<libdcp::MonoPictureAsset> pa (
                new libdcp::MonoPictureAsset (
                        boost::bind (&MakeDCPJob::j2c_path, this, _1),
@@ -137,8 +137,10 @@ MakeDCPJob::run ()
                ascend ();
        }
 
+       descend (0.1);
        cpl->add_reel (shared_ptr<libdcp::Reel> (new libdcp::Reel (pa, sa, shared_ptr<libdcp::SubtitleAsset> ())));
        dcp.write_xml ();
+       ascend ();
 
        set_progress (1);
        set_state (FINISHED_OK);