summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-11 21:16:51 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-11 21:16:51 +0000
commit64b049283067b548f741553b92ca1340d27e147e (patch)
treea0e5ae48ccd1ec0cf74f94a9b81b573d2a8e9ea3 /src
parent552d79f34551b2a38b66ed0a8c79bad7d9853f57 (diff)
Calm a busy-wait in dcpomatic_create.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_create.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc
index a3adc8e3e..c14522a02 100644
--- a/src/tools/dcpomatic_create.cc
+++ b/src/tools/dcpomatic_create.cc
@@ -29,6 +29,7 @@
#include "lib/ratio.h"
#include "lib/image_content.h"
#include "lib/video_content.h"
+#include "lib/cross.h"
#include <libxml++/libxml++.h>
#include <boost/filesystem.hpp>
#include <getopt.h>
@@ -235,7 +236,10 @@ main (int argc, char* argv[])
JobManager* jm = JobManager::instance ();
- while (jm->work_to_do ()) {}
+ while (jm->work_to_do ()) {
+ dcpomatic_sleep (1);
+ }
+
while (signal_manager->ui_idle() > 0) {}
ContentList content = film->content ();