Timeline: Acquire sequence lock for region split.

This commit is contained in:
Jonathan Moore Liles 2020-11-05 20:09:48 -08:00
parent ae773fbf62
commit c808c53d6c
1 changed files with 4 additions and 0 deletions

View File

@ -794,6 +794,8 @@ Audio_Region::split ( nframes_t where )
Audio_Region *copy = new Audio_Region( *this );
timeline->sequence_lock.wrlock();
{
Logger _log( copy );
@ -803,6 +805,8 @@ Audio_Region::split ( nframes_t where )
Sequence_Region::split( copy, where );
}
timeline->sequence_lock.unlock();
log_end();
block_end();