From 4f6c71f27501406c4507a972bd094bc569004cd2 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 14 Jul 2020 07:21:13 -0500 Subject: [PATCH] Use the Track name in captured_for property (was processor:playlist which was obtuse) --- libs/ardour/disk_writer.cc | 3 ++- libs/ardour/session.cc | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 738aea6477..aee4f9301e 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -1125,7 +1125,7 @@ DiskWriter::transport_stopped_wallclock (struct tm& when, time_t twhen, bool abo if (as) { audio_srcs.push_back (as); as->update_header (capture_info.front()->start, when, twhen); - as->set_captured_for (_name.val()); + as->set_captured_for (_track->name()); as->mark_immutable (); Glib::DateTime tm (Glib::DateTime::create_now_local (mktime (&when))); @@ -1140,6 +1140,7 @@ DiskWriter::transport_stopped_wallclock (struct tm& when, time_t twhen, bool abo if (_midi_write_source) { midi_srcs.push_back (_midi_write_source); + _midi_write_source->set_captured_for (_track->name()); } (*chan)->write_source->stamp (twhen); diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 3436d36bde..07808370e5 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -5757,6 +5757,8 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end, goto out; } + source->set_captured_for(track.name()); + srcs.push_back (source); }