Committed by
GitHub
Fixed create progressive coder issue
Because we don't break when we find the 1st coder that can decode progressively, we will always rewrite the `progressiveCoder ` with an `SDWebImageIOCoder` instance
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -332,6 +332,7 @@ didReceiveResponse:(NSURLResponse *)response | @@ -332,6 +332,7 @@ didReceiveResponse:(NSURLResponse *)response | ||
332 | if ([coder conformsToProtocol:@protocol(SDWebImageProgressiveCoder)] && | 332 | if ([coder conformsToProtocol:@protocol(SDWebImageProgressiveCoder)] && |
333 | [((id<SDWebImageProgressiveCoder>)coder) canIncrementallyDecodeFromData:imageData]) { | 333 | [((id<SDWebImageProgressiveCoder>)coder) canIncrementallyDecodeFromData:imageData]) { |
334 | self.progressiveCoder = [[[coder class] alloc] init]; | 334 | self.progressiveCoder = [[[coder class] alloc] init]; |
335 | + break; | ||
335 | } | 336 | } |
336 | } | 337 | } |
337 | } | 338 | } |
-
Please register or login to post a comment