MidiRegion: take reader lock before cloning data into new source
This commit is contained in:
parent
718b3fcfa9
commit
bbfb1bd229
|
@ -149,6 +149,7 @@ MidiRegion::clone (boost::shared_ptr<MidiSource> newsrc, ThawList* tl) const
|
|||
take a lock on newsrc.
|
||||
*/
|
||||
|
||||
Source::ReaderLock lm (ms->mutex());
|
||||
if (ms->write_to (lm, newsrc, bbegin, bend)) {
|
||||
return boost::shared_ptr<MidiRegion> ();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user