mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
Bug 1049317 - SBR::ReadFromCache forgot to reset offset. r=cajbir
This commit is contained in:
parent
3b90d46458
commit
4ef30b5b03
@ -133,7 +133,10 @@ SourceBufferResource::ReadFromCache(char* aBuffer, int64_t aOffset, uint32_t aCo
|
||||
{
|
||||
SBR_DEBUG("SourceBufferResource(%p)::ReadFromCache(aBuffer=%p, aOffset=%lld, aCount=%u)",
|
||||
this, aBuffer, aOffset, aCount);
|
||||
return ReadAt(aOffset, aBuffer, aCount, nullptr);
|
||||
int64_t oldOffset = mOffset;
|
||||
nsresult rv = ReadAt(aOffset, aBuffer, aCount, nullptr);
|
||||
mOffset = oldOffset;
|
||||
return rv;
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user