13
0

don't crash when recording due to null midi_write_source

This commit is contained in:
Paul Davis 2017-06-06 16:31:00 -04:00
parent 1046657a58
commit 690c02c31a

View File

@ -538,7 +538,9 @@ DiskWriter::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
capture_start_frame = loop_start;
}
if (_midi_write_source) {
_midi_write_source->mark_write_starting_now (capture_start_frame, capture_captured, loop_length);
}
g_atomic_int_set(const_cast<gint*> (&_frames_pending_write), 0);
g_atomic_int_set(const_cast<gint*> (&_num_captured_loops), 0);