(Source List) Catch new sources created by bounce-range-to-source-list
authorBen Loftis <ben@harrisonconsoles.com>
Tue, 30 Jul 2019 20:43:22 +0000 (15:43 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Thu, 1 Aug 2019 17:11:31 +0000 (12:11 -0500)
libs/ardour/session.cc

index 3b76bb119d6627b69276bda5cd7c0aac44d99ceb..3d6c0055d797027c035a245b0ab197b57823d8dc 100644 (file)
@@ -6182,7 +6182,7 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
                goto out;
        }
 
-       legal_playlist_name = legalize_for_path (playlist->name());
+       legal_playlist_name = "(BOUNCE) " + legalize_for_path (playlist->name());
 
        for (uint32_t chan_n = 0; chan_n < diskstream_channels.n(data_type); ++chan_n) {
 
@@ -6328,10 +6328,11 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
                PropertyList plist;
 
                plist.add (Properties::start, 0);
+               plist.add (Properties::whole_file, true);
                plist.add (Properties::length, srcs.front()->length(srcs.front()->natural_position()));
                plist.add (Properties::name, region_name_from_path (srcs.front()->name(), true));
 
-               result = RegionFactory::create (srcs, plist);
+               result = RegionFactory::create (srcs, plist, true);
 
        }