diff options
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r-- | libs/ardour/region_factory.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index eba237d0d2..513ec7301b 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -43,6 +43,7 @@ RegionFactory::RegionMap RegionFactory::region_map; PBD::ScopedConnectionList RegionFactory::region_list_connections; Glib::StaticMutex RegionFactory::region_name_map_lock; std::map<std::string, uint32_t> RegionFactory::region_name_map; +RegionFactory::CompoundAssociations RegionFactory::_compound_associations; boost::shared_ptr<Region> RegionFactory::create (boost::shared_ptr<const Region> region, bool announce) @@ -366,8 +367,8 @@ RegionFactory::clear_map () { Glib::Mutex::Lock lm (region_map_lock); region_map.clear (); + _compound_associations.clear (); } - } void @@ -561,3 +562,10 @@ RegionFactory::remove_regions_using_source (boost::shared_ptr<Source> src) } } } + +void +RegionFactory::add_compound_association (boost::shared_ptr<Region> orig, boost::shared_ptr<Region> copy) +{ + Glib::Mutex::Lock lm (region_map_lock); + _compound_associations[copy] = orig; +} |