am b165719e: am e577e87a: Fix a typo in NuCachedSource2 that would trigger an assert near the end of a stream.
Merge commit 'b165719e93dd390b4f71f5d5e993880529cc841f' * commit 'b165719e93dd390b4f71f5d5e993880529cc841f': Fix a typo in NuCachedSource2 that would trigger an assert near the end of a stream.
This commit is contained in:
@@ -416,7 +416,7 @@ ssize_t NuCachedSource2::readInternal(off_t offset, void *data, size_t size) {
|
||||
return mFinalStatus;
|
||||
}
|
||||
|
||||
size_t avail = mCache->totalSize() - offset;
|
||||
size_t avail = mCache->totalSize() - delta;
|
||||
mCache->copy(delta, data, avail);
|
||||
|
||||
return avail;
|
||||
|
||||
Reference in New Issue
Block a user