diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-27 22:38:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-27 22:38:43 +0000 |
| commit | 00e9647a9ede540f2d567c19025278c25a87c830 (patch) | |
| tree | 145f7fc92cfa0670e7da304b965d30f751ab1b14 /src/reel.cc | |
| parent | 8c2f3517e868078b551bb01d975f2956cb692fbf (diff) | |
Various tweaks; work on read_dcp example.
Diffstat (limited to 'src/reel.cc')
| -rw-r--r-- | src/reel.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/reel.cc b/src/reel.cc index 7503ae9c..723a2db4 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -133,7 +133,7 @@ Reel::encrypted () const } void -Reel::add_kdm (KDM const & kdm) +Reel::add (KDM const & kdm) { list<KDMKey> keys = kdm.keys (); @@ -172,3 +172,19 @@ Reel::add (shared_ptr<ReelAsset> asset) _main_subtitle = su; } } + +void +Reel::resolve_refs (list<shared_ptr<Object> > objects) +{ + if (_main_picture) { + _main_picture->content().resolve (objects); + } + + if (_main_sound) { + _main_sound->content().resolve (objects); + } + + if (_main_subtitle) { + _main_subtitle->content().resolve (objects); + } +} |
