mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
use a RegionWriteLock while modifying Playlist region list in ::region_bounds_changed
This commit is contained in:
parent
d95179f571
commit
405574184a
1 changed files with 7 additions and 3 deletions
|
|
@ -1650,8 +1650,13 @@ Playlist::region_bounds_changed (const PropertyChange& what_changed, std::shared
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
regions.erase (i);
|
{
|
||||||
regions.insert (upper_bound (regions.begin (), regions.end (), region, cmp), region);
|
RegionWriteLock rl (this);
|
||||||
|
|
||||||
|
regions.erase (i);
|
||||||
|
regions.insert (upper_bound (regions.begin (), regions.end (), region, cmp), region);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (holding_state ()) {
|
if (holding_state ()) {
|
||||||
pending_bounds.push_back (region);
|
pending_bounds.push_back (region);
|
||||||
|
|
@ -3577,4 +3582,3 @@ Playlist::time_domain_changed ()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue