Fix crash on MIDI stretch.

git-svn-id: svn://localhost/ardour2/branches/3.0@5022 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard
2009-04-30 21:57:28 +00:00
parent 5385e93cc0
commit cf8aa58686

View File

@@ -84,6 +84,7 @@ MidiStretch::run (boost::shared_ptr<Region> r)
boost::shared_ptr<MidiSource> new_src = boost::dynamic_pointer_cast<MidiSource>(nsrcs[0]);
assert(new_src);
new_src->load_model(true, true);
boost::shared_ptr<MidiModel> new_model = new_src->model();
new_model->start_write();