13
0

Only use playlist-name when bounced region-name is unset

This commit is contained in:
Robin Gareus 2022-11-18 22:48:17 +01:00
parent 44796e6702
commit 22007bf882
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -5870,15 +5870,15 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
if (name.length() > 0) {
/*if the user passed in a name, we will use it, and also prepend the resulting sources with that name*/
legal_playlist_name.append(legalize_for_path (name) + "-");
legal_playlist_name.append (legalize_for_path (name));
} else {
legal_playlist_name.append (legalize_for_path (playlist->name ()));
}
legal_playlist_name.append(legalize_for_path(playlist->name()));
for (uint32_t chan_n = 0; chan_n < diskstream_channels.n(data_type); ++chan_n) {
string path = ((data_type == DataType::AUDIO)
? new_audio_source_path (legal_playlist_name, diskstream_channels.n_audio(), chan_n, true)
? new_audio_source_path (legal_playlist_name, diskstream_channels.n_audio(), chan_n, false)
: new_midi_source_path (legal_playlist_name));
if (path.empty()) {