13
0

change callers of changed Track::use_new_playlist() API and its implementation

This commit is contained in:
Paul Davis 2017-07-25 11:34:09 -04:00
parent a7431e21db
commit aaac1e489b
2 changed files with 6 additions and 5 deletions

View File

@ -74,6 +74,7 @@ Auditioner::init ()
}
_output->add_port ("", this, DataType::MIDI);
use_new_playlist (DataType::MIDI);
lookup_synth();

View File

@ -85,7 +85,7 @@ Track::init ()
return -1;
}
use_new_playlist ();
use_new_playlist (data_type());
/* disk writer and reader processors will be added when Route calls
* add_processors_oh_children_of_mine ().
@ -909,10 +909,10 @@ Track::use_copy_playlist ()
}
int
Track::use_new_playlist ()
Track::use_new_playlist (DataType dt)
{
string newname;
boost::shared_ptr<Playlist> playlist = _playlists[data_type()];
boost::shared_ptr<Playlist> playlist = _playlists[dt];
if (playlist) {
newname = Playlist::bump_name (playlist->name(), _session);
@ -920,13 +920,13 @@ Track::use_new_playlist ()
newname = Playlist::bump_name (_name, _session);
}
playlist = PlaylistFactory::create (data_type(), _session, newname, hidden());
playlist = PlaylistFactory::create (dt, _session, newname, is_private_route());
if (!playlist) {
return -1;
}
return use_playlist (data_type(), playlist);
return use_playlist (dt, playlist);
}
void