From 22007bf88298fcad5b9afff3a5854d9c98c98258 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 18 Nov 2022 22:48:17 +0100 Subject: [PATCH] Only use playlist-name when bounced region-name is unset --- libs/ardour/session.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 37b4424aeb..4dd915685f 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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()) {