summaryrefslogtreecommitdiff
path: root/src/lib/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-08-30 23:16:21 +0100
committerCarl Hetherington <cth@carlh.net>2019-08-30 23:16:21 +0100
commit1f88a38a2a607c21988a403e76f315444c4be36b (patch)
tree2b14f959784faf33eec61172552d9c50b72a0f65 /src/lib/dcp.h
parent77d2514fee2919c32e4db92b8f75369754d17fb5 (diff)
Make player more tolerant of some DCP errors.
Diffstat (limited to 'src/lib/dcp.h')
-rw-r--r--src/lib/dcp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dcp.h b/src/lib/dcp.h
index 575bcc803..d449fdb39 100644
--- a/src/lib/dcp.h
+++ b/src/lib/dcp.h
@@ -24,6 +24,7 @@
#include <dcp/cpl.h>
#include <boost/shared_ptr.hpp>
#include <list>
+#include <iostream>
class DCPContent;
@@ -33,11 +34,15 @@ public:
std::list<boost::shared_ptr<dcp::CPL> > cpls () const;
protected:
- explicit DCP (boost::shared_ptr<const DCPContent> content)
+ explicit DCP (boost::shared_ptr<const DCPContent> content, bool tolerant)
: _dcp_content (content)
+ , _tolerant (tolerant)
{}
boost::shared_ptr<const DCPContent> _dcp_content;
+
+private:
+ bool _tolerant;
};
#endif