зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1049317 - SBR::ReadFromCache forgot to reset offset. r=cajbir
This commit is contained in:
Родитель
3b90d46458
Коммит
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)",
|
SBR_DEBUG("SourceBufferResource(%p)::ReadFromCache(aBuffer=%p, aOffset=%lld, aCount=%u)",
|
||||||
this, aBuffer, aOffset, aCount);
|
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
|
bool
|
||||||
|
|
Загрузка…
Ссылка в новой задаче