mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
avoid crash during multi-region bounce
This commit is contained in:
parent
f8469a49ed
commit
0b07e1b26a
1 changed files with 3 additions and 2 deletions
|
|
@ -427,14 +427,15 @@ Editor::bounce_region_selection (bool with_processing)
|
||||||
|
|
||||||
InterThreadInfo itt;
|
InterThreadInfo itt;
|
||||||
|
|
||||||
boost::shared_ptr<Region> r;
|
|
||||||
std::string name;
|
std::string name;
|
||||||
if (multiple_selected) {
|
if (multiple_selected) {
|
||||||
name = string_compose ("%1%2", bounce_name, r->name ());
|
name = string_compose ("%1%2", bounce_name, region->name ());
|
||||||
} else {
|
} else {
|
||||||
name = bounce_name;
|
name = bounce_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boost::shared_ptr<Region> r;
|
||||||
|
|
||||||
if (with_processing) {
|
if (with_processing) {
|
||||||
r = track->bounce_range (region->position_sample(), region->position_sample() + region->length_samples(), itt, track->main_outs(), false, name);
|
r = track->bounce_range (region->position_sample(), region->position_sample() + region->length_samples(), itt, track->main_outs(), false, name);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue