diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-08 22:18:18 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-08 22:21:21 -0700 |
commit | 7373e3ac148aedc2d0c707443e5ea6b6c208ed7a (patch) | |
tree | b2c78c03a06b77fe6f8d09c5bc9a14a945796602 /libs/ardour/playlist.cc | |
parent | d1c2098c112c65d9fcb11805e53df53134ae88b5 (diff) |
add concept of an owner region (by ID) to PlaylistSource
Diffstat (limited to 'libs/ardour/playlist.cc')
-rw-r--r-- | libs/ardour/playlist.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index f2249dcde9..6462ee2dca 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -3177,6 +3177,10 @@ Playlist::combine (const RegionList& r) boost::shared_ptr<Region> compound_region = RegionFactory::create (parent_region, plist, true); + for (SourceList::iterator s = sources.begin(); s != sources.end(); ++s) { + boost::dynamic_pointer_cast<PlaylistSource>(*s)->set_owner (compound_region->id()); + } + /* remove all the selected regions from the current playlist */ freeze (); |