Fix build.
authorCarl Hetherington <cth@carlh.net>
Thu, 18 Oct 2012 23:12:20 +0000 (00:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 18 Oct 2012 23:12:20 +0000 (00:12 +0100)
src/tools/makedcp.cc

index 9fa8027e7f6333d574e00e5b2cca7b050cf0331f..57814272d75a8ee84f400b7854ebafa67e7bbdce 100644 (file)
@@ -160,6 +160,8 @@ main (int argc, char* argv[])
 
                dvdomatic_sleep (5);
 
+               list<shared_ptr<Job> > jobs = JobManager::instance()->get ();
+
                if (!first && progress) {
                        cout << "\033[" << jobs.size() << "A";
                        cout.flush ();
@@ -168,7 +170,6 @@ 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() << ": ";