Double check our assumptions when merging MIDI

This commit is contained in:
Robin Gareus 2023-10-04 15:12:31 +02:00
parent 923e6a554e
commit c7745ffd43
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -570,6 +570,8 @@ MidiRegion::merge (std::shared_ptr<MidiRegion const> other_region)
* self->position <= other->position ()
*/
assert (position() <= other_region->position ());
while ((e1 != self->end ()) || (e2 != other->end ())) {
/* map time from other region to this region */
Temporal::Beats e2t;