We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent affc5fd commit e188ecbCopy full SHA for e188ecb
ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m
@@ -559,6 +559,9 @@ - (UIImage*)snapshotInternal
559
560
- (UIImage*)snapshotInternalOnIOS7AndLater
561
{
562
+ if (CGSizeEqualToSize(self.bounds.size, CGSizeZero)) {
563
+ return nil;
564
+ }
565
UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, 0.0);
566
// Render our snapshot into the image context
567
[self drawViewHierarchyInRect:self.bounds afterScreenUpdates:NO];
0 commit comments