summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-11 14:59:23 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-11 14:59:23 +0000
commitefce7d4edd7f9d55626a198c6c541a93bcc5eaf4 (patch)
tree992c64e3f95a320ca200d04368e50b5bdd72463f /src/lib
parent35992b8f2c9d58a08d1ecb08a39d7c99362fd2c0 (diff)
More DCP import logging.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp.cc1
-rw-r--r--src/lib/dcp_content.cc8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dcp.cc b/src/lib/dcp.cc
index fa9f5f721..9db478330 100644
--- a/src/lib/dcp.cc
+++ b/src/lib/dcp.cc
@@ -44,6 +44,7 @@ DCP::cpls () const
list<shared_ptr<dcp::DCP> > dcps;
list<shared_ptr<dcp::CPL> > cpls;
+ LOG_GENERAL ("Reading %1 DCP directories", _dcp_content->directories().size());
BOOST_FOREACH (boost::filesystem::path i, _dcp_content->directories()) {
shared_ptr<dcp::DCP> dcp (new dcp::DCP (i));
dcp->read (false, 0, true);
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index 9ff5bb16f..c73d0df86 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -28,6 +28,7 @@
#include "overlaps.h"
#include "compose.hpp"
#include "dcp_decoder.h"
+#include "log.h"
#include "text_content.h"
#include <dcp/dcp.h>
#include <dcp/raw_convert.h>
@@ -63,6 +64,8 @@ int const DCPContentProperty::NAME = 605;
int const DCPContentProperty::TEXTS = 606;
int const DCPContentProperty::CPL = 607;
+#define LOG_GENERAL(...) this->film()->log()->log(String::compose(__VA_ARGS__), LogEntry::TYPE_GENERAL);
+
DCPContent::DCPContent (shared_ptr<const Film> film, boost::filesystem::path p)
: Content (film)
, _encrypted (false)
@@ -72,6 +75,8 @@ DCPContent::DCPContent (shared_ptr<const Film> film, boost::filesystem::path p)
, _reference_audio (false)
, _three_d (false)
{
+ LOG_GENERAL ("Creating DCP content from %1", p.string());
+
read_directory (p);
set_default_colour_conversion ();
@@ -147,10 +152,13 @@ DCPContent::DCPContent (shared_ptr<const Film> film, cxml::ConstNodePtr node, in
void
DCPContent::read_directory (boost::filesystem::path p)
{
+ LOG_GENERAL ("DCPContent::read_directory reads %1", p.string());
for (boost::filesystem::directory_iterator i(p); i != boost::filesystem::directory_iterator(); ++i) {
if (boost::filesystem::is_regular_file (i->path())) {
+ LOG_GENERAL ("Inside there's regular file %1", i->path().string());
add_path (i->path());
} else if (boost::filesystem::is_directory (i->path ())) {
+ LOG_GENERAL ("Inside there's directory %1", i->path().string());
read_directory (i->path());
}
}