13
0

Use the Track name in captured_for property (was processor:playlist which was obtuse)

This commit is contained in:
Ben Loftis 2020-07-14 07:21:13 -05:00
parent d98d3f25d8
commit 4f6c71f275
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

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