Bläddra i källkod

VLCMovieViewController: showOnDisplay: Make sure displayView exists

Soomin Lee 5 år sedan
förälder
incheckning
c07d4b3a88
1 ändrade filer med 2 tillägg och 1 borttagningar
  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],