summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-26 18:41:41 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-26 18:41:41 +0000
commit2e93ca3670e5581b5523f60130b38594de10d6c3 (patch)
tree6ed18ed07bccf77b2d172ef7681fce981956815f /src/cpl.cc
parent9ed550de7b98ca2f8467dd134a9c0ad7f1868f23 (diff)
parent447cc7ddec5ace7bb47df35192ef02e7c19bf9b3 (diff)
Merge master; MXF subtitle stuff not included.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index cd255309..9eae09ad 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -158,6 +158,7 @@ list<shared_ptr<const Content> >
CPL::content () const
{
list<shared_ptr<const Content> > c;
+
for (list<shared_ptr<Reel> >::const_iterator i = _reels.begin(); i != _reels.end(); ++i) {
if ((*i)->main_picture ()) {
c.push_back ((*i)->main_picture()->mxf ());
@@ -251,3 +252,17 @@ CPL::resolve_refs (list<shared_ptr<Object> > objects)
(*i)->resolve_refs (objects);
}
}
+
+string
+CPL::pkl_type (Standard standard) const
+{
+ switch (standard) {
+ case INTEROP:
+ return "text/xml;asdcpKind=CPL";
+ case SMPTE:
+ return "text/xml";
+ default:
+ assert (false);
+ }
+}
+