makedcp should notice when jobs are added.
authorCarl Hetherington <cth@carlh.net>
Thu, 18 Oct 2012 13:48:11 +0000 (14:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 18 Oct 2012 13:48:11 +0000 (14:48 +0100)
src/tools/makedcp.cc

index 51b45f2d60fb5ac495f9660030ec5c2363eba398..9fa8027e7f6333d574e00e5b2cca7b050cf0331f 100644 (file)
@@ -154,8 +154,6 @@ main (int argc, char* argv[])
 
        film->make_dcp (true);
 
-       list<shared_ptr<Job> > jobs = JobManager::instance()->get ();
-
        bool all_done = false;
        bool first = true;
        while (!all_done) {
@@ -170,6 +168,7 @@ main (int argc, char* argv[])
                first = false;
                
                all_done = true;
+               list<shared_ptr<Job> > jobs = JobManager::instance()->get ();
                for (list<shared_ptr<Job> >::iterator i = jobs.begin(); i != jobs.end(); ++i) {
                        if (progress) {
                                cout << (*i)->name() << ": ";