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
This commit is contained in:
parent
85cb2fd6ad
commit
5773bfec07
|
@ -332,6 +332,7 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
if ([coder conformsToProtocol:@protocol(SDWebImageProgressiveCoder)] &&
|
||||
[((id<SDWebImageProgressiveCoder>)coder) canIncrementallyDecodeFromData:imageData]) {
|
||||
self.progressiveCoder = [[[coder class] alloc] init];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue