Timeline: Acquire sequence lock for region split.
This commit is contained in:
parent
ae773fbf62
commit
c808c53d6c
|
@ -794,6 +794,8 @@ Audio_Region::split ( nframes_t where )
|
||||||
|
|
||||||
Audio_Region *copy = new Audio_Region( *this );
|
Audio_Region *copy = new Audio_Region( *this );
|
||||||
|
|
||||||
|
timeline->sequence_lock.wrlock();
|
||||||
|
|
||||||
{
|
{
|
||||||
Logger _log( copy );
|
Logger _log( copy );
|
||||||
|
|
||||||
|
@ -803,6 +805,8 @@ Audio_Region::split ( nframes_t where )
|
||||||
Sequence_Region::split( copy, where );
|
Sequence_Region::split( copy, where );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timeline->sequence_lock.unlock();
|
||||||
|
|
||||||
log_end();
|
log_end();
|
||||||
|
|
||||||
block_end();
|
block_end();
|
||||||
|
|
Loading…
Reference in New Issue