fix crash introduced in d8b3

This commit is contained in:
Ben Loftis 2022-02-12 09:34:42 -06:00
parent 6bc881086b
commit 227815ebab

View File

@ -1048,9 +1048,11 @@ AudioTrigger::set_segment_tempo (double t)
/* TODO: once we have a Region Trimmer, this could get more complicated:
* this segment might overlap another SD (Coverage==Internal|Start|End)
* in which case we might be setting both SDs, or not. TBD*/
SegmentDescriptor segment = get_segment_descriptor();
for (auto & src : _region->sources()) {
src->set_segment_descriptor (segment);
if (_region) {
SegmentDescriptor segment = get_segment_descriptor();
for (auto & src : _region->sources()) {
src->set_segment_descriptor (segment);
}
}
}