fix an aggressive assert that crashes out when reading the wrong regions ... why are we reading the wrong regions?
git-svn-id: svn://localhost/ardour2/branches/3.0@10257 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3764eedca0
commit
533045aea3
@ -400,8 +400,14 @@ AudioRegion::_read_at (const SourceList& srcs, framecnt_t limit,
|
||||
internal_offset = 0;
|
||||
buf_offset = _position - position;
|
||||
/* if this fails then the requested section is entirely
|
||||
before the position of this region */
|
||||
assert (cnt >= buf_offset);
|
||||
before the position of this region
|
||||
*/
|
||||
if (cnt < buf_offset) {
|
||||
error << "trying to read region " << name() << " @ " << position << " which is outside region bounds "
|
||||
<< _position << " .. " << last_frame() << " (len = " << length() << ')'
|
||||
<< endmsg;
|
||||
return 0; // read nothing
|
||||
}
|
||||
cnt -= buf_offset;
|
||||
} else {
|
||||
internal_offset = position - _position;
|
||||
|
Loading…
Reference in New Issue
Block a user