Bug 863975 - Handle the situation that we're left mid-frame when decoding a multi-frame image. r=seth

--HG--
extra : rebase_source : e485eb48a615f3e35e4e5592d0f37604402142f8
This commit is contained in:
Joe Drew 2013-04-25 16:35:23 -04:00
parent ae4fe518b8
commit a0b4c1afc0

View File

@ -163,6 +163,9 @@ Decoder::Finish(RasterImage::eShutdownIntent aShutdownIntent)
// If we're usable, do exactly what we should have when the decoder
// completed.
if (usable) {
if (mInFrame) {
PostFrameStop();
}
PostDecodeDone();
} else {
if (mObserver) {