projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store successful DCP encodes.
[dcpomatic.git]
/
src
/
lib
/
transcode_job.cc
diff --git
a/src/lib/transcode_job.cc
b/src/lib/transcode_job.cc
index da7571b96db1219d63dbe7c6abfaf411535c528c..6aa31af978d1407b4c61bc2f4c8d5f0f8fb91b78 100644
(file)
--- a/
src/lib/transcode_job.cc
+++ b/
src/lib/transcode_job.cc
@@
-31,6
+31,7
@@
#include "log.h"
#include "dcpomatic_log.h"
#include "compose.hpp"
#include "log.h"
#include "dcpomatic_log.h"
#include "compose.hpp"
+#include "analytics.h"
#include <iostream>
#include <iomanip>
#include <iostream>
#include <iomanip>
@@
-41,6
+42,7
@@
using std::fixed;
using std::setprecision;
using std::cout;
using boost::shared_ptr;
using std::setprecision;
using std::cout;
using boost::shared_ptr;
+using boost::dynamic_pointer_cast;
/** @param film Film to use */
TranscodeJob::TranscodeJob (shared_ptr<const Film> film)
/** @param film Film to use */
TranscodeJob::TranscodeJob (shared_ptr<const Film> film)
@@
-89,6
+91,11
@@
TranscodeJob::run ()
}
LOG_GENERAL (N_("Transcode job completed successfully: %1 fps"), fps);
}
LOG_GENERAL (N_("Transcode job completed successfully: %1 fps"), fps);
+
+ if (dynamic_pointer_cast<DCPEncoder>(_encoder)) {
+ Analytics::instance()->successful_dcp_encode();
+ }
+
_encoder.reset ();
/* XXX: this shouldn't be here */
_encoder.reset ();
/* XXX: this shouldn't be here */