mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 07:05:43 +01:00
we need to copy the top level playlist with an easy work around... alternate playlists will be harder
This commit is contained in:
parent
0016361e19
commit
be6249229e
1 changed files with 9 additions and 2 deletions
|
|
@ -324,10 +324,17 @@ void MixerSnapshot::recall()
|
|||
PresentationInfo::order_t order = route->presentation_info().order();
|
||||
string name = route->name();
|
||||
XMLNode& node = sanitize_node(state.node);
|
||||
PlaylistDisposition disp = NewPlaylist;
|
||||
PlaylistDisposition disp = CopyPlaylist;
|
||||
|
||||
//we need the route's playlist id before it dissapears
|
||||
XMLNode& route_node = route->get_state();
|
||||
string playlist_id;
|
||||
route_node.get_property (X_("audio-playlist"), playlist_id);
|
||||
|
||||
node.set_property(X_("audio-playlist"), playlist_id);
|
||||
|
||||
_session->remove_route(route);
|
||||
route = 0; //explicitly drop referenc
|
||||
route = 0; //explicitly drop reference
|
||||
|
||||
RouteList rl = _session->new_route_from_template(1, order, node, name, disp);
|
||||
boost::shared_ptr<Route> route = rl.front();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue