mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
MidiRegion: take reader lock before cloning data into new source
This commit is contained in:
parent
718b3fcfa9
commit
bbfb1bd229
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue