diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-16 20:20:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-16 20:20:47 +0000 |
| commit | ff896d5f5ec20e1371b423bb746c32fa55cc126a (patch) | |
| tree | bcd6f76709753812c8a988ad43c1f7b8727c6f28 /src/dcp.cc | |
| parent | 7a8bf6efd00161b1ce7bb160bd50a0c11c28d792 (diff) | |
Ref does not need to be a template since it's always used for Asset.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -181,7 +181,15 @@ DCP::read (bool keep_going, ReadErrors* errors) } BOOST_FOREACH (shared_ptr<CPL> i, cpls ()) { - i->resolve_refs (list_of_type<Asset, Object> (other_assets)); + i->resolve_refs (other_assets); + } +} + +void +DCP::resolve_refs (list<shared_ptr<Asset> > assets) +{ + BOOST_FOREACH (shared_ptr<CPL> i, cpls ()) { + i->resolve_refs (assets); } } @@ -429,7 +437,7 @@ DCP::assets () const BOOST_FOREACH (shared_ptr<CPL> i, cpls ()) { assets.push_back (i); BOOST_FOREACH (shared_ptr<const ReelAsset> j, i->reel_assets ()) { - shared_ptr<Asset> o = j->asset_ref().object (); + shared_ptr<Asset> o = j->asset_ref().asset (); assets.push_back (o); /* More Interop special-casing */ shared_ptr<InteropSubtitleAsset> sub = dynamic_pointer_cast<InteropSubtitleAsset> (o); |
