Merge pull request #1727 from ejensen/video-poster-fix

[ASVideoNode] Prevent setting old poster image if the asset was set to nil
This commit is contained in:
appleguy
2016-06-08 22:41:30 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign, readwrite) BOOL shouldAggressivelyRecoverFromStall;
@property (nonatomic, assign, readonly) ASVideoNodePlayerState playerState;
//! Defaults to 100
//! Defaults to 1000
@property (nonatomic, assign) int32_t periodicTimeObserverTimescale;
//! Defaults to AVLayerVideoGravityResizeAspect

View File

@@ -224,7 +224,7 @@ static NSString * const kStatus = @"status";
- (void)generatePlaceholderImage
{
ASVideoNode * __weak weakSelf = self;
AVAsset * __weak asset = self.asset;
AVAsset *asset = self.asset;
[self imageAtTime:kCMTimeZero completionHandler:^(UIImage *image) {
ASPerformBlockOnMainThread(^{