瀏覽代碼

mini playback: fix loss of video

Felix Paul Kühne 10 年之前
父節點
當前提交
b7cbb286d5
共有 1 個文件被更改,包括 1 次插入5 次删除
  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;
 }