summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-07 14:48:55 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-09 13:44:56 +0100
commit5cd49a43b0c453f714bb654d0f23b726b39dadec (patch)
tree4d418d258073f2e3b6aed1a65c4d7456a3a89292 /src/tools/dcpomatic.cc
parent89e202dd965d8f9cc94b965c804a31b7e01adb94 (diff)
Connect dcpomatic_kdm to backend.
Diffstat (limited to 'src/tools/dcpomatic.cc')
-rw-r--r--src/tools/dcpomatic.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index c646942cb..9330b1b60 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -53,6 +53,7 @@
#include "lib/cross.h"
#include "lib/content_factory.h"
#include "lib/compose.hpp"
+#include "lib/cinema_kdms.h"
#include <dcp/exceptions.h>
#include <wx/generic/aboutdlgg.h>
#include <wx/stdpaths.h>
@@ -445,15 +446,22 @@ private:
}
try {
+ list<ScreenKDM> screen_kdms = _film->make_kdms (d->screens(), d->cpl(), d->from(), d->until(), d->formulation());
if (d->write_to ()) {
ScreenKDM::write_files (
_film->name(),
- _film->make_kdms (d->screens(), d->cpl(), d->from(), d->until(), d->formulation()),
+ screen_kdms,
d->directory()
);
} else {
JobManager::instance()->add (
- shared_ptr<Job> (new SendKDMEmailJob (_film, d->screens (), d->cpl (), d->from (), d->until (), d->formulation ()))
+ shared_ptr<Job> (new SendKDMEmailJob (
+ _film->name(),
+ _film->dcp_name(),
+ d->from(),
+ d->until(),
+ CinemaKDMs::collect (screen_kdms)
+ ))
);
}
} catch (dcp::NotEncryptedError& e) {