diff options
author | Julien ROGER <gulien.roger@gmail.com> | 2016-11-30 17:02:20 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-05 09:20:50 +0000 |
commit | 481334ae2a313e684897f3096107c2a832ca5759 (patch) | |
tree | 56d9acb58ca4ae8fed9ab62180eb692df577661c /libs/ardour/audio_diskstream.cc | |
parent | 0eedb7f86609c0d9ec9ecc7a0b77fa949d158937 (diff) |
Proposed fix managing shared playlists (see #7150)
Actually, when duplicating a track with "share playlist", the current
playlist is owned by the new created track(orig-track-id). The sharing
mecanism is made by diskstreams pointing on the same(shared) playlist.
Since playlist now owned by the new track, selecting another playlist in
the original track "forgets" the playlist for this track.You can't
select the shared playlist anymore from the original track.
This commit adds a way to keep trace of shared playlist between tracks.
Diffstat (limited to 'libs/ardour/audio_diskstream.cc')
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 267338228a..c33b56f984 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -316,6 +316,7 @@ AudioDiskstream::use_copy_playlist () newname = Playlist::bump_name (_playlist->name(), _session); if ((playlist = boost::dynamic_pointer_cast<AudioPlaylist>(PlaylistFactory::create (audio_playlist(), newname))) != 0) { + playlist->reset_shares(); return use_playlist (playlist); } else { return -1; |