13
0

Make an aborted MIDI capture due to no data being received behave the same as an explicitly aborted capture.

git-svn-id: svn://localhost/ardour2/branches/3.0@8999 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-03-01 02:04:57 +00:00
parent 4b5a59142b
commit 0ee1cbb077

View File

@ -1070,7 +1070,21 @@ MidiDiskstream::transport_stopped_wallclock (struct tm& /*when*/, time_t /*twhen
_playlist->thaw ();
_session.add_command (new StatefulDiffCommand(_playlist));
}
} else {
/* No data was recorded, so this capture will
effectively be aborted; do the same as we
do for an explicit abort.
*/
if (_write_source) {
_write_source->mark_for_remove ();
_write_source->drop_references ();
_write_source.reset();
}
}
mark_write_completed = true;
}