change callers of changed Track::use_new_playlist() API and its implementation
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 25 Jul 2017 15:34:09 +0000 (11:34 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Sep 2017 15:40:53 +0000 (11:40 -0400)
libs/ardour/auditioner.cc
libs/ardour/track.cc

index b10ac2ca44d7124dcd31eea8ab5287bd4babc8a8..9032f2a30b4acb61f2a58a7f523c3576f191b6ad 100644 (file)
@@ -74,6 +74,7 @@ Auditioner::init ()
        }
 
        _output->add_port ("", this, DataType::MIDI);
+       use_new_playlist (DataType::MIDI);
 
        lookup_synth();
 
index 7423ca4169610a96c10e1ec7af6d07fd38fa1b52..3b0e891b2b34c8390b1b5eafe400cd528eb6f33e 100644 (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