mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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(^{
|
||||
|
||||
Reference in New Issue
Block a user