[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/esr24] Bug 944353. If we've had a decoder error then the image is not usable. r=seth a=sledru
commit 92a295290dd3e45c8df0749372db1891f04e5034
Author: Timothy Nikkel <tnikkel@xxxxxxxxx>
Date: Wed Feb 26 21:48:51 2014 -0600
Bug 944353. If we've had a decoder error then the image is not usable. r=seth a=sledru
This matches what RasterImage will do.
---
image/src/Decoder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/image/src/Decoder.cpp b/image/src/Decoder.cpp
index 85845f6..2e3b36f 100644
--- a/image/src/Decoder.cpp
+++ b/image/src/Decoder.cpp
@@ -154,7 +154,7 @@ Decoder::Finish(RasterImage::eShutdownIntent aShutdownIntent)
}
}
- bool usable = true;
+ bool usable = !HasDecoderError();
if (aShutdownIntent != RasterImage::eShutdownIntent_NotNeeded && !HasDecoderError()) {
// If we only have a data error, we're usable if we have at least one complete frame.
if (GetCompleteFrameCount() == 0) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits