almost-certain fix for "randomly-muted overlapped region" bug

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7114 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-05-17 23:11:59 +00:00
parent 2f55c7aa2a
commit c22d09f9ca

View file

@ -1445,18 +1445,26 @@ Playlist::regions_to_read (nframes_t start, nframes_t end)
case OverlapStart:
to_check.insert ((*i)->position());
if ((*i)->position() != 0) {
to_check.insert ((*i)->position()-1);
}
covering.push_back (*i);
break;
case OverlapEnd:
to_check.insert ((*i)->last_frame());
to_check.insert ((*i)->last_frame()+1);
covering.push_back (*i);
break;
case OverlapExternal:
covering.push_back (*i);
to_check.insert ((*i)->position());
if ((*i)->position() != 0) {
to_check.insert ((*i)->position()-1);
}
to_check.insert ((*i)->last_frame());
to_check.insert ((*i)->last_frame()+1);
break;
}