Catch new sources created by bounce-range-to-source-list

This commit is contained in:
Ben Loftis 2019-07-30 15:43:22 -05:00
parent a5c18d7338
commit a53da91c46
1 changed files with 3 additions and 2 deletions

View 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);
}