summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-14 00:30:21 +0200
committerCarl Hetherington <cth@carlh.net>2023-05-14 20:45:40 +0200
commitdea00c1b3845382e900b7e592fe4550e95e1bdc0 (patch)
tree1ab5cfda356b3ed6ce7ceeef85e08ad05e7742c7 /src/lib/dcp_examiner.h
parent0f3797af7a31fab73d2f963d7690d11853f72865 (diff)
Don't scan the directory on DCPContent creation; instead do it when2528-content
the examine() happens.
Diffstat (limited to 'src/lib/dcp_examiner.h')
-rw-r--r--src/lib/dcp_examiner.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h
index b51e7ae7a..f111a5205 100644
--- a/src/lib/dcp_examiner.h
+++ b/src/lib/dcp_examiner.h
@@ -38,7 +38,7 @@ class DCPContent;
class DCPExaminer : public VideoExaminer, public AudioExaminer
{
public:
- DCPExaminer(std::shared_ptr<const DCPContent>, bool tolerant);
+ DCPExaminer(std::shared_ptr<const DCPContent>, bool tolerant, std::vector<boost::filesystem::path> const& files);
bool has_video () const override {
return _has_video;
@@ -174,6 +174,10 @@ public:
return _fonts;
}
+ std::vector<boost::filesystem::path> paths() const {
+ return _paths;
+ }
+
private:
boost::optional<double> _video_frame_rate;
boost::optional<dcp::Size> _video_size;
@@ -207,4 +211,5 @@ private:
Frame _atmos_length = 0;
dcp::Fraction _atmos_edit_rate;
std::vector<std::vector<std::shared_ptr<dcpomatic::Font>>> _fonts;
+ std::vector<boost::filesystem::path> _paths;
};