소스 검색

VLCMovieViewController: showOnDisplay: Make sure displayView exists

Soomin Lee 5 년 전
부모
커밋
c07d4b3a88
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Sources/VLCMovieViewController.m

+ 2 - 1
Sources/VLCMovieViewController.m

@@ -1955,7 +1955,8 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
 
     UIView *displayView = _playingExternalView.displayView;
 
-    if (displayExternally && _movieView.superview == displayView) {
+    if (displayExternally && displayView
+        && _movieView.superview == displayView) {
         // Adjust constraints for external display
         [NSLayoutConstraint activateConstraints:@[
             [_movieView.leadingAnchor constraintEqualToAnchor:displayView.leadingAnchor],