diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-17 23:11:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-17 23:11:59 +0000 |
commit | c22d09f9ca90f14e5c8b3aa73313304d3f9bd460 (patch) | |
tree | 0910cb3e6701190a9a514cda0efe20d53d89a91b | |
parent | 2f55c7aa2aa5ba6d46ee7d7719a505351dbe6053 (diff) |
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
-rw-r--r-- | libs/ardour/playlist.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 20a2aabe43..0ec0309e14 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -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; } |