Browse Source

mini playback: fix loss of video

Felix Paul Kühne 10 years ago
parent
commit
b7cbb286d5
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Sources/VLCPlaybackController.m

+ 1 - 5
Sources/VLCPlaybackController.m

@@ -585,17 +585,13 @@
         if ([_actualVideoOutputView superview] != nil)
             [_actualVideoOutputView removeFromSuperview];
 
-        _mediaPlayer.currentVideoTrackIndex = 0;
         _actualVideoOutputView.frame = (CGRect){CGPointZero, videoOutputView.frame.size};
         [_actualVideoOutputView layoutSubviews];
         [_actualVideoOutputView updateConstraints];
 
         [videoOutputView addSubview:_actualVideoOutputView];
-    } else {
+    } else
         [_actualVideoOutputView removeFromSuperview];
-        if (_mediaPlayer.audioTrackIndexes.count > 0)
-            _mediaPlayer.currentVideoTrackIndex = -1;
-    }
 
     _videoOutputViewWrapper = videoOutputView;
 }