mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 856486 (Part 1) - Avoid asserts triggered by rapid off-main-thread decoding. r=jrmuizel
This commit is contained in:
parent
ae799e322a
commit
c0cee126d2
@ -2817,7 +2817,7 @@ RasterImage::RequestDecodeCore(RequestDecodeType aDecodeType)
|
||||
// data, so signal that we want a full decode and give up for now.
|
||||
if (!mHasSize) {
|
||||
mWantFullDecode = true;
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3525,7 +3525,8 @@ RasterImage::FinishedSomeDecoding(eShutdownIntent aIntent /* = eShutdownIntent_D
|
||||
}
|
||||
|
||||
// If we were a size decode and a full decode was requested, now's the time.
|
||||
if (NS_SUCCEEDED(rv) && done && wasSize && image->mWantFullDecode) {
|
||||
if (NS_SUCCEEDED(rv) && aIntent != eShutdownIntent_Error && done &&
|
||||
wasSize && image->mWantFullDecode) {
|
||||
image->mWantFullDecode = false;
|
||||
|
||||
// If we're not meant to be storing source data and we just got the size,
|
||||
|
Loading…
Reference in New Issue
Block a user