summaryrefslogtreecommitdiff
path: root/image/Decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/Decoder.cpp')
-rw-r--r--image/Decoder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/image/Decoder.cpp b/image/Decoder.cpp
index 5d39080928..9d0647a4a3 100644
--- a/image/Decoder.cpp
+++ b/image/Decoder.cpp
@@ -36,6 +36,7 @@ Decoder::Decoder(RasterImage* aImage)
, mHaveExplicitOutputSize(false)
, mInFrame(false)
, mFinishedNewFrame(false)
+ , mHasFrameToTake(false)
, mReachedTerminalState(false)
, mDecodeDone(false)
, mError(false)
@@ -254,6 +255,8 @@ Decoder::AllocateFrame(const gfx::IntSize& aOutputSize,
mCurrentFrame.get());
if (mCurrentFrame) {
+ mHasFrameToTake = true;
+
// Gather the raw pointers the decoders will use.
mCurrentFrame->GetImageData(&mImageData, &mImageDataLength);
mCurrentFrame->GetPaletteData(&mColormap, &mColormapSize);
@@ -474,6 +477,7 @@ Decoder::PostError()
mCurrentFrame->Abort();
mInFrame = false;
--mFrameCount;
+ mHasFrameToTake = false;
}
}