[tbb-commits] [tor-browser/esr24] Bug 944353. If we've had a decoder error then the image is not usable. r=seth a=sledru

mikeperry at torproject.org mikeperry at torproject.org
Fri Aug 29 05:26:39 UTC 2014


commit 92a295290dd3e45c8df0749372db1891f04e5034
Author: Timothy Nikkel <tnikkel at gmail.com>
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) {





More information about the tbb-commits mailing list