#include "reel_picture_asset.h"
#include "reel_sound_asset.h"
#include "reel_subtitle_asset.h"
+#include "reel_closed_caption_asset.h"
#include "reel_atmos_asset.h"
#include "local_time.h"
#include "dcp_assert.h"
if (i->main_subtitle ()) {
c.push_back (i->main_subtitle());
}
+ if (i->closed_caption ()) {
+ c.push_back (i->closed_caption());
+ }
if (i->atmos ()) {
c.push_back (i->atmos());
}
#include "reel_atmos_asset.h"
#include "reel_closed_caption_asset.h"
#include <libxml++/nodes/element.h>
+#include <boost/foreach.hpp>
using std::string;
using std::list;
}
/* XXX: it's not ideal that we silently tolerate Interop or SMPTE nodes here */
- shared_ptr<cxml::Node> closed_caption = asset_list->optional_node_child ("cc-cpl:MainClosedCaption");
- if (closed_caption) {
- _closed_caption.reset (new ReelClosedCaptionAsset (closed_caption));
+ shared_ptr<cxml::Node> closed_caption = asset_list->optional_node_child ("MainClosedCaption");
+ if (!closed_caption) {
+ closed_caption = asset_list->optional_node_child ("ClosedCaption");
}
- closed_caption = asset_list->optional_node_child ("tt:ClosedCaption");
if (closed_caption) {
_closed_caption.reset (new ReelClosedCaptionAsset (closed_caption));
}
return _main_subtitle;
}
+ boost::shared_ptr<ReelClosedCaptionAsset> closed_caption () const {
+ return _closed_caption;
+ }
+
boost::shared_ptr<ReelAtmosAsset> atmos () const {
return _atmos;
}