summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 9dfff888..ea49eb34 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -842,3 +842,11 @@ CPL::set_main_picture_active_area(dcp::Size area)
_main_picture_active_area = area;
}
+
+bool
+CPL::can_be_read() const
+{
+ auto r = reels();
+ return std::all_of(r.begin(), r.end(), [](shared_ptr<const Reel> reel) { return reel->can_be_read(); });
+}
+