Prevent note trackers for overlapping MIDI regions inserting events that occur before...
authorCarl Hetherington <carl@carlh.net>
Thu, 21 Apr 2011 13:59:32 +0000 (13:59 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 21 Apr 2011 13:59:32 +0000 (13:59 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9399 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_playlist.cc

index 31918aa2b63aef081ac6a08d03743fb56d7b33d5..0d2243da0fdc008edd0043973ff3959a4acae76d 100644 (file)
@@ -124,7 +124,7 @@ MidiPlaylist::read (MidiRingBuffer<framepos_t>& dst, framepos_t start, framecnt_
                                */
 
                                framepos_t resolve_at = (*i)->last_frame();
-                               if (resolve_at >= end) {
+                               if (resolve_at < start || resolve_at >= end) {
                                        resolve_at = start;
                                }