diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-11 20:49:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-12 01:22:10 +0200 |
| commit | 7d66bda50ade8ea618f331b885f1bfa4fa0a2af9 (patch) | |
| tree | 9846716f11327850e9a6bdd2cb00243be828590f /src/cpl.cc | |
| parent | 3370a67e8a9aeaec45911ba1c714a0d259781fdf (diff) | |
Split ReelSubtitleAsset into Interop and SMPTE classes.
Diffstat (limited to 'src/cpl.cc')
| -rw-r--r-- | src/cpl.cc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -137,7 +137,10 @@ CPL::CPL (boost::filesystem::path file) _ratings.push_back (Rating(i)); } } - _reels = type_grand_children<Reel> (f, "ReelList", "Reel"); + + for (auto i: f.node_child("ReelList")->node_children("Reel")) { + _reels.push_back (make_shared<Reel>(i, *_standard)); + } auto reel_list = f.node_child ("ReelList"); if (reel_list) { @@ -546,7 +549,9 @@ add_encryptable_assets (vector<shared_ptr<T>>& assets, vector<shared_ptr<Reel>> assets.push_back (i->main_sound()); } if (i->main_subtitle ()) { - assets.push_back (i->main_subtitle()); + if (auto enc = dynamic_pointer_cast<ReelEncryptableAsset>(i->main_subtitle())) { + assets.push_back (enc); + } } for (auto j: i->closed_captions()) { assets.push_back (j); |
