diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-08-30 23:16:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-08-30 23:16:21 +0100 |
| commit | 1f88a38a2a607c21988a403e76f315444c4be36b (patch) | |
| tree | 2b14f959784faf33eec61172552d9c50b72a0f65 /src/lib/dcp.h | |
| parent | 77d2514fee2919c32e4db92b8f75369754d17fb5 (diff) | |
Make player more tolerant of some DCP errors.
Diffstat (limited to 'src/lib/dcp.h')
| -rw-r--r-- | src/lib/dcp.h | 7 |
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 |
