projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Detect CPU info on OS X.
[dcpomatic.git]
/
src
/
lib
/
job_manager.cc
diff --git
a/src/lib/job_manager.cc
b/src/lib/job_manager.cc
index 507bf6791ba33e608e94bfe49f53b9066d409f39..9105976280dd3b7d5ab58f81a362bdb72dcf5a9d 100644
(file)
--- a/
src/lib/job_manager.cc
+++ b/
src/lib/job_manager.cc
@@
-111,20
+111,19
@@
JobManager::scheduler ()
}
if ((*i)->is_new()) {
}
if ((*i)->is_new()) {
- shared_ptr<Job> r = (*i)->required ();
- if (!r || r->finished_ok ()) {
- (*i)->start ();
-
- /* Only start one job at once */
- break;
- }
+ (*i)->start ();
+
+ /* Only start one job at once */
+ break;
}
}
}
if (active_jobs != _last_active_jobs) {
_last_active_jobs = active_jobs;
}
}
}
if (active_jobs != _last_active_jobs) {
_last_active_jobs = active_jobs;
- ui_signaller->emit (boost::bind (boost::ref (ActiveJobsChanged), active_jobs));
+ if (ui_signaller) {
+ ui_signaller->emit (boost::bind (boost::ref (ActiveJobsChanged), active_jobs));
+ }
}
dvdomatic_sleep (1);
}
dvdomatic_sleep (1);