Преглед изворни кода

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],