mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Fix crash on multiple record due to not initiating write on source.
Fixes it, but this seems a bit dirty... audio has the same problem (but lives)... git-svn-id: svn://localhost/ardour2/branches/3.0@5887 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
82a0c02af1
commit
e76d325bd0
1 changed files with 2 additions and 5 deletions
|
|
@ -1367,6 +1367,7 @@ MidiDiskstream::use_new_write_source (uint32_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
_write_source->set_allow_remove_if_empty (true);
|
_write_source->set_allow_remove_if_empty (true);
|
||||||
|
_write_source->mark_streaming_midi_write_started (_note_mode, _session.transport_frame());
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -1374,7 +1375,7 @@ MidiDiskstream::use_new_write_source (uint32_t n)
|
||||||
void
|
void
|
||||||
MidiDiskstream::reset_write_sources (bool mark_write_complete, bool /*force*/)
|
MidiDiskstream::reset_write_sources (bool mark_write_complete, bool /*force*/)
|
||||||
{
|
{
|
||||||
if (!recordable()) {
|
if (!_session.writable() || !recordable()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1383,10 +1384,6 @@ MidiDiskstream::reset_write_sources (bool mark_write_complete, bool /*force*/)
|
||||||
}
|
}
|
||||||
|
|
||||||
use_new_write_source (0);
|
use_new_write_source (0);
|
||||||
|
|
||||||
if (record_enabled()) {
|
|
||||||
//_capturing_sources.push_back (_write_source);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue