Fix failure to analyse audio in some cases.
[dcpomatic.git] / test / test.cc
index c7a9e95bfd6f8d6a78eda143c4020f4d4bf458ce..c57f76e61c7f98a97effb69622a682308a81ea35 100644 (file)
@@ -291,7 +291,7 @@ check_xml (boost::filesystem::path ref, boost::filesystem::path test, list<strin
        check_xml (ref_root, test_root, ignore);
 }
 
-void
+bool
 wait_for_jobs ()
 {
        JobManager* jm = JobManager::instance ();
@@ -322,7 +322,10 @@ wait_for_jobs ()
 
        if (jm->errors ()) {
                JobManager::drop ();
+               return true;
        }
+
+       return false;
 }
 
 void